Skip to content

Commit 475d689

Browse files
committed
Adds gh action to check for DNM labels
1 parent e2e1465 commit 475d689

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Check for DNM labels
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- edited
11+
- labeled
12+
- unlabeled
13+
14+
jobs:
15+
check-for-DNM:
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Fail if PR is DNM
20+
if: contains(github.event.pull_request.labels.*.name, 'do-not-merge/hold') || contains(github.event.pull_request.labels.*.name, 'do-not-merge/work-in-progress')
21+
run: |
22+
echo "This PR has a DNM label."
23+
exit 1

0 commit comments

Comments
 (0)