Skip to content

Commit

Permalink
chore(ci): fail on do-not-merge label (#9622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayocream authored and AndyZhang0707 committed Jun 21, 2024
1 parent c19039d commit a2f0059
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/label-check.yml
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') }}

0 comments on commit a2f0059

Please sign in to comment.