chore: Add CI workflow to check for backport request #4
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
name: Ensure changes are migrated to Vue3 | |
on: | |
pull_request: | |
types: [opened, ready_for_review, reopened, synchronize, labeled] | |
branches: | |
- main | |
- master | |
permissions: | |
contents: read | |
concurrency: | |
group: vue3-backport-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
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 was created." | |
fi |