-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.mergify.yml
More file actions
128 lines (115 loc) · 3.31 KB
/
.mergify.yml
File metadata and controls
128 lines (115 loc) · 3.31 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
extends: .github
shared:
DefaultQueueOptions: &DefaultQueueOptions
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
merge_method: squash
priority_rules:
- name: hotfix
priority: high
conditions:
- label = hotfix
allow_checks_interruption: true
- name: automated updates
priority: low
conditions:
- or:
- author = mergify-ci-bot
- author = dependabot[bot]
merge_protections:
- name: 🤖 Continuous Integration
if:
- label != hotfix
success_conditions:
- and: &CheckRuns
- check-success = lint
- check-success = build
- check-success = test
- or:
- label = ignore-broken-links
- check-success = test-broken-links
- or:
- check-success=Cloudflare Pages
# fork can't have the preview build
- "-head-repo-full-name~=^Mergifyio/"
- name: 👀 Review Requirements
if:
- label != hotfix
success_conditions:
- or: &DefaultReviewCond
- "#approved-reviews-by >= 2"
- author = dependabot[bot]
- author = mergify-ci-bot
- name: 🧑🚒 Hotfix Review Requirements
if:
- label = hotfix
success_conditions:
- or:
- or: &HotfixReviewCond
# Author is engineering manager, we allow with one review
- and:
- author=@eng-mgr
- "#approved-reviews-by>=1"
- and:
- author=@devs
# in any other case, we allow if approve by engineering manager
# or anyone if it's a regular fix/revert
- or:
- approved-reviews-by=@eng-mgr
- and:
- title~=^(revert|fix)
- "#approved-reviews-by>=1"
- or: *DefaultReviewCond
# yamllint disable-line rule:line-length
- body ~= (Fix|Related).* (INC-\d+|https:\/\/github\.com\/Mergifyio\/docs\/security\/dependabot\/\d+)
queue_rules:
- name: hotfix
<<: *DefaultQueueOptions
queue_conditions:
- label = hotfix
merge_conditions:
- and: *CheckRuns
- name: default
<<: *DefaultQueueOptions
queue_conditions:
- author != mergify-ci-bot
- author != dependabot[bot]
merge_conditions:
- schedule=Mon-Fri 09:00-17:30[Europe/Paris]
- name: automated updates
<<: *DefaultQueueOptions
merge_method: fast-forward
queue_conditions:
- or:
- author = mergify-ci-bot
- author = dependabot[bot]
batch_size: 10
batch_max_wait_time: 5min
commit_message_template:
pull_request_rules:
- name: request review
conditions:
- -author=dependabot[bot]
- -author=mergify-ci-bot
- -merged
- -closed
- and: *CheckRuns
- "#changes-requested-reviews-by=0"
- review-requested!=@devs
- and:
- or:
- label!=hotfix
- not:
or: *HotfixReviewCond
- not:
or: *DefaultReviewCond
actions:
request_reviews:
teams:
- devs
merge_queue:
max_parallel_checks: 5
merge_protections_settings:
reporting_method: deployments
auto_merge_conditions: true