-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): fail on do-not-merge label (#9622)
- Loading branch information
1 parent
c19039d
commit a2f0059
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Pull Request Label Checker | ||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened, labeled, unlabeled] | ||
jobs: | ||
check-labels: | ||
name: prevent merge labels | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: do-not-merge label found | ||
run: exit 1 | ||
if: ${{ contains(github.event.*.labels.*.name, 'do not merge') || contains(github.event.*.labels.*.name, 'do-not-merge') }} |