Skip to content

Commit 46ecbf5

Browse files
story645QuLogic
andcommitted
prevent merge on label [skip circle] [skip azp] [skip appveyor]
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 3ad0bc5 commit 46ecbf5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/do_not_merge.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Do Not Merge
3+
4+
# action to block merging on specific labels
5+
on:
6+
pull_request:
7+
types: [synchronize, opened, reopened, labeled, unlabeled]
8+
9+
permissions:
10+
checks: write
11+
12+
jobs:
13+
do-not-merge:
14+
if: >-
15+
contains(github.event.pull_request.labels.*.name, 'status: needs comment/discussion') ||
16+
contains(github.event.pull_request.labels.*.name, 'status: waiting for other PR')
17+
name: Prevent Merging
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check for label
21+
run: |
22+
echo "This PR can not be merged because it has one of the following labels: "
23+
echo "status: needs comment/discussion"
24+
echo "status: waiting for other PR"
25+
exit 1

0 commit comments

Comments
 (0)