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 774a7f3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ensure-backported.yml
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

0 comments on commit 774a7f3

Please sign in to comment.