Skip to content

Commit 40463d5

Browse files
committed
ci(Mergify): configuration update
Signed-off-by: twisti <null>
1 parent a252500 commit 40463d5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.mergify.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
pull_request_rules:
2-
- name: Add a queue label when PR is queued
3-
description: Toggle the queue label when a pull request is (un)queued.
2+
- name: "Close PRs opened from master"
43
conditions:
5-
- queue-position > 0
4+
- author!=mergify[bot]
5+
- base!=master
6+
- head=master
67
actions:
7-
label:
8-
toggle:
9-
- merge-queued
8+
comment:
9+
message: >
10+
🚫 Pull requests must not be created by the `master` branch. Please use a feature branch.
11+
close: {}
1012
- name: Label Mergify Stacks PRs
1113
description: Pull requests that are part of a Mergify stack should be labeled as such
1214
conditions:

0 commit comments

Comments
 (0)