8000 prevent merge on label [skip circle] [skip appveyor] [skip azp] · matplotlib/matplotlib@f7c4e10 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7c4e10

Browse files
committed
prevent merge on label [skip circle] [skip appveyor] [skip azp]
1 parent 879bde7 commit f7c4e10

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/do_not_merge.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Do Not Merge
2+
3+
# action to block merging on specific labels
4+
on:
5+
pull_request:
6+
types: [synchronize, opened, reopened, labeled, unlabeled]
7+
8+
jobs:
9+
do-not-merge:
10+
if: |
11+
contains(github.event.*.labels.*.name, 'status: needs comment/discussion') ||
12+
contains(github.event.*.labels.*.name, 'status: waiting for other PR')
13+
name: Prevent Merging
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check for label
17+
run: |
18+
echo "${{ toJson(github.event.pull_request.labels.*.name) }}"
19+
echo "labels must be removed to allow merging, ask labeller how."
20+
exit 1

0 commit comments

Comments
 (0)
0