chore: Add CI workflow to check for backport request #1
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 exit 1; fi |