-
Notifications
You must be signed in to change notification settings - Fork 41
/
.mergify.yml
93 lines (92 loc) · 2.57 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
pull_request_rules:
- name: Auto merge (main)
conditions:
- base=main
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- check-success=Coverage
- check-success=Format
- check-success=Copyright Notices
- check-success=Checks (clippy)
- check-success=Checks (parachain)
- check-success=Checks (standalone)
- check-success=Quick check benchmarks
- check-success=Test standalone build
- check-success=Test parachain build
- check-success=Fuzz
- label=s:accepted
actions:
label:
remove:
- s:in-progress
- s:review-needed
queue:
merge_method: squash
- name: Auto merge (feature branch)
conditions:
- base!=main
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- check-success=Coverage
- check-success=Format
- check-success=Checks (clippy)
- check-success=Checks (parachain)
- check-success=Checks (standalone)
- check-success=Quick check benchmarks
- check-success=Test standalone build
- check-success=Test parachain build
- check-success=Fuzz
- label=s:accepted
actions:
label:
remove:
- s:in-progress
- s:review-needed
queue:
merge_method: squash
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
message: This pull request is now in conflicts. Could you fix it @{{author}}? 🙏
label:
add:
- s:revision-needed
remove:
- s:accepted
- s:in-progress
- s:review-needed
- name: Set in-progress label after changes are pushed
conditions:
- commits[-1].author!=mergify[bot]
- commits[-1].date_committer>=0 days 00:01 ago
actions:
label:
add:
- s:in-progress
remove:
- s:accepted
- s:available
- s:blocked
- s:on-hold
- s:review-needed
- s:revision-needed
- name: Trigger CI after Mergify merged the base branch (fix merge queue)
conditions:
- commits[-1].author=mergify[bot]
- commits[-1].date_committer>=0 days 00:01 ago
- queue-position=0
actions:
label:
add:
- s:review-needed
- name: Remove CI trigger label
conditions:
- commits[-1].author=mergify[bot]
- label=s:review-needed
- queue-position=0
actions:
label:
remove:
- s:review-needed