Skip to content

Commit

Permalink
ci: prevent PR with "do not merge" label from being merged (#6444)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhayab authored Nov 20, 2024
1 parent c098cb4 commit d68f02c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/enforce-do-not-merge-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Do Not Merge Label

on:
pull_request:
types:
- opened
- labeled
- unlabeled

jobs:
fail-for-do-not-merge:
runs-on: ubuntu-latest
steps:
- name: Fail if PR is labelled with "do not merge"
if: contains(github.event.pull_request.labels.*.name, '🚨 DO NOT MERGE')
run: |
echo "This PR is labelled with "do not merge"."
exit 1

0 comments on commit d68f02c

Please sign in to comment.