forked from Mergifyio/mergify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
125 lines (123 loc) · 3.1 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
125
defaults:
actions:
queue:
name: default
method: rebase
queue_rules:
- name: default
conditions:
- check-success=requirements
- check-success=pep8
- check-success=py39
- check-success=docs
- check-success=docker
- check-success=heroku
speculative_checks: 5
pull_request_rules:
- name: automatic merge
conditions:
- base=main
- check-success=GitGuardian Security Checks
- check-success=Semantic Pull Request
- check-success=requirements
- check-success=pep8
- check-success=py39
- check-success=docs
- check-success=docker
- check-success=heroku
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- label!=work-in-progress
- label!=manual merge
actions:
queue:
- name: automatic merge for hotfix
conditions:
- base=main
- author=@devs
- check-success=GitGuardian Security Checks
- check-success=Semantic Pull Request
- body~=(?m)^Fixes MERGIFY-ENGINE-
- label=hotfix
- "#changes-requested-reviews-by=0"
- label!=work-in-progress
- label!=manual merge
actions:
queue:
priority: high
- name: automatic merge from dependabot
conditions:
- check-success=GitGuardian Security Checks
- check-success=Semantic Pull Request
- author=dependabot[bot]
- label!=work-in-progress
- label!=manual merge
actions:
queue:
priority: low
- name: dismiss reviews except for core devs
conditions:
- author!=@devs
actions:
dismiss_reviews: {}
- name: dismiss reviews for core devs
conditions:
- author=@devs
actions:
dismiss_reviews:
# Do not remove approval for core devs
approved: False
- name: auto add wip
conditions:
- title~=^(wip|WIP).*
actions:
label:
add: ["work-in-progress"]
- name: request review
conditions:
- -author=dependabot[bot]
- label!=work-in-progress
- -merged
- -closed
- check-success=requirements
- check-success=pep8
- check-success=py39
- check-success=docs
- check-success=docker
- check-success=heroku
- "#approved-reviews-by=0"
- "#changes-requested-reviews-by=0"
actions:
request_reviews:
teams:
- devs
- name: warn on no Sentry
conditions:
- -body~=(?m)^Fixes MERGIFY-ENGINE-
- label=hotfix
actions:
comment:
message: Your pull request is a hotfix but does not fix a Sentry issue. 🤔
- name: warn on conflicts
conditions:
- conflict
actions:
comment:
message: "@{{author}} this pull request is now in conflict 😩"
label:
add:
- conflict
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- conflict
- name: warn on CI failure for hotfix
conditions:
- label=hotfix
- "#check-failure>0"
actions:
comment:
message: Your hotfix is failing CI @{{author}} 🥺