Skip to content

Commit

Permalink
Update do-not-merge-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfoxtyler authored Feb 17, 2025
1 parent 8bfe284 commit 6ab720f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/do-not-merge-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Check Do Not Merge

on:
pull_request:
branches: [ $default-branch ]
branches:
- main
types:
- opened
- reopened
- ready_for_review
- review_requested
- labeled
- unlabeled

Expand All @@ -15,7 +19,8 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'do not merge')
runs-on: ubuntu-latest
steps:
- name: Fail if do not merge label is applied
- name: Fail if PR is labeled do not merge
run: |
echo "Cannot merge with `do not merge` label applied."
echo "This PR is labeled do not merge. Remove the label to pass this check."
exit 1

0 comments on commit 6ab720f

Please sign in to comment.