Skip to content

Commit

Permalink
feat(CI): Ensure backport for Vue3 are created
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Apr 9, 2024
1 parent 01d0683 commit 8a6c116
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ensure-backported.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

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 is already created. Thank you!"
fi

0 comments on commit 8a6c116

Please sign in to comment.