Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a4ff845

Browse files
committedFeb 27, 2024··
Add DNM action
1 parent cbf939c commit a4ff845

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎.github/workflows/do-not-merge.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Do Not Merge
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled]
6+
7+
jobs:
8+
do-not-merge:
9+
if: ${{ contains(github.event.*.labels.*.name, 'do not merge') }}
10+
name: Prevent Merging
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check for label
14+
run: |
15+
echo "Pull request is labeled as 'do not merge'"
16+
echo "This workflow fails so that the pull request cannot be merged"
17+
exit 1

0 commit comments

Comments
 (0)
Please sign in to comment.