Skip to content

Commit

Permalink
chore(actions): do not allow "backport master" labels (#10430)
Browse files Browse the repository at this point in the history
This is a bad practice which could cause merge conflicts and is against our backport policy.
  • Loading branch information
dndx authored and AndyZhang0707 committed Jun 21, 2024
1 parent ac58478 commit 03b0e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/label-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ jobs:
- name: do-not-merge label found
run: echo "do-not-merge label found, this PR will not be merged"; exit 1
if: ${{ contains(github.event.*.labels.*.name, 'pr/do not merge') || contains(github.event.*.labels.*.name, 'DO NOT MERGE') }}
- name: backport master label found
run: echo "Please do not backport into master, instead, create a PR targeting master and backport from it instead."; exit 1
if: ${{ contains(github.event.*.labels.*.name, 'backport master') }}

0 comments on commit 03b0e43

Please sign in to comment.