-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
124 lines (116 loc) · 3.22 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
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
extends: .github
queue_rules:
- name: hotfix
allow_inplace_checks: true
conditions:
- and: &CheckRuns
- check-success=linters
- name: default
allow_inplace_checks: true
conditions:
- and: *CheckRuns
- schedule=Mon-Fri 09:00-17:30[Europe/Paris]
- name: lowprio
allow_inplace_checks: true
conditions:
- and: *CheckRuns
- schedule=Mon-Fri 09:00-17:00[Europe/Paris]
batch_size: 7
batch_max_wait_time: 5min
queue_branch_merge_method: fast-forward
disallow_checks_interruption_from_queues:
- default
pull_request_rules:
- name: automatic merge for hotfix
conditions:
- base=main
- "check-success=Rule: Conventional Commit (post_check)"
- "check-success=Rule: testing requirements (post_check)"
- or:
# 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"
- label=hotfix
- "#changes-requested-reviews-by=0"
- "#review-requested=0"
- label!=manual merge
actions:
queue:
name: hotfix
- name: automatic merge
conditions:
- base=main
- "check-success=Rule: Conventional Commit (post_check)"
- and: *CheckRuns
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
- "#review-requested=0"
- label!=manual merge
actions:
queue:
- name: automatic merge for clifus version bump
conditions:
- and: *CheckRuns
- "check-success=Rule: Conventional Commit (post_check)"
- author=mergify-ci-bot
- label!=manual merge
- "title~=^chore: bump"
- "#commits=1"
- head~=^clifus/
actions:
queue:
name: lowprio
method: merge
- name: automatic merge from trivy
conditions:
- and: *CheckRuns
- "check-success=Rule: Conventional Commit (post_check)"
- head=trivy/daily-report
- author=mergify-ci-bot
- label!=manual merge
- label!=new CVE
- "#commits=1"
actions:
queue:
name: lowprio
commit_message_template:
method: merge
- name: automatic merge from dependabot
conditions:
- and: *CheckRuns
- "check-success=Rule: Conventional Commit (post_check)"
- author=dependabot[bot]
- label!=manual merge
- "#commits=1"
actions:
queue:
name: lowprio
method: merge
commit_message_template:
- name: request review
conditions:
- -author=dependabot[bot]
- -author=mergify-ci-bot
- -merged
- -closed
- and: *CheckRuns
- "#approved-reviews-by=0"
- "#changes-requested-reviews-by=0"
- "review-requested!=@devs"
actions:
request_reviews:
teams:
- devs
merge_queue:
max_parallel_checks: 5