-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CI): Ensure backport for Vue3 are created
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
name: Ensure changes are migrated to Vue3 | ||
|
||
on: | ||
pull_request: | ||
types: [opened, ready_for_review, reopened, synchronize, labeled] | ||
branches: | ||
- main | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
commit-message-check: | ||
if: github.event.pull_request.draft == false | ||
|
||
name: Require Vue3 migration backport | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Run check | ||
run: | | ||
if ! ${{ contains(github.event.pull_request.labels.*.name, 'backport-request') }}; then | ||
echo -e "Please request a backport to the next-branch for our ongoing Vue 3 migration.\nSimply create a comment '/backport to next' and handle the backport afterwards."; | ||
exit 1; | ||
else | ||
echo "Backport request is already created. Thank you!" | ||
fi |