Skip to content

Commit fc26358

Browse files
committed
Fail if label 'merge-main-ack' is not present
1 parent e0c6f0e commit fc26358

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/merge-to-main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches:
66
- master
7+
types:
8+
- opened
9+
- labeled
10+
- unlabeled
711

812
jobs:
913
pr-message:
@@ -21,3 +25,7 @@ jobs:
2125
this change to see the light of the day just yet, consider
2226
using a feature branch first, and only merge into the main
2327
branch when the code complete and ready to be released.
28+
29+
- name: Label checker
30+
if: !contains( github.event.pull_request.labels.*.name, 'main-merge-ack')
31+
run: exit 1

0 commit comments

Comments
 (0)