Skip to content

Commit 1ceaa74

Browse files
committed
Add mergify configuration
1 parent 495682a commit 1ceaa74

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.mergify.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
pull_request_rules:
3+
- name: automatic merge
4+
conditions:
5+
- and: &base_checks
6+
- base=master
7+
- -label~=^acceptance-tests-needed|not-ready
8+
# wait explicitly for one of the final checks to show up to be on the
9+
# safe side even in case of checks not reporting back at all
10+
- "check-success~=🐪 Perl"
11+
# we don't need to spell out all tests but we can check a minimum
12+
# amount
13+
- "#check-succes=>6"
14+
- "#check-failure=0"
15+
- "#check-pending=0"
16+
- linear-history
17+
- and:
18+
- "#approved-reviews-by>=2"
19+
- "#changes-requested-reviews-by=0"
20+
# https://doc.mergify.io/examples.html#require-all-requested-reviews-to-be-approved
21+
- "#review-requested=0"
22+
actions: &merge
23+
merge:
24+
method: merge
25+
- name: automatic merge on special label
26+
conditions:
27+
- and: *base_checks
28+
- and:
29+
# mergify config checks needs at least two rules in "and" so we repeat
30+
# one from the base checks
31+
- base=master
32+
- "label=merge-fast"
33+
actions: *merge
34+
- name: ask to resolve conflict
35+
conditions:
36+
- conflict
37+
actions:
38+
comment:
39+
message: This pull request is now in conflicts. Could you fix it? 🙏

0 commit comments

Comments
 (0)