forked from Mergifyio/mergify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
103 lines (103 loc) · 2.8 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
pull_request_rules:
- name: automatic merge
conditions:
- base=master
- status-success=Semantic Pull Request
- "status-success=ci/circleci: requirements"
- "status-success=ci/circleci: datadog"
- "status-success=ci/circleci: pep8"
- "status-success=ci/circleci: py38"
- "status-success=ci/circleci: docs"
- "#approved-reviews-by>=1"
- label!=work-in-progress
- label!=manual merge
actions:
merge:
strict: "smart"
method: rebase
- name: automatic merge for hotfix
conditions:
- base=master
- status-success=Semantic Pull Request
- body~=(?m)^Fixes MERGIFY-ENGINE-
- "status-success=ci/circleci: requirements"
- "status-success=ci/circleci: datadog"
- "status-success=ci/circleci: pep8"
- "status-success=ci/circleci: py38"
- "status-success=ci/circleci: docs"
- label=hotfix
- "#changes-requested-reviews-by=0"
- label!=work-in-progress
- label!=manual merge
actions:
merge:
strict: "smart"
method: rebase
- name: automatic merge from dependabot
conditions:
- status-success=Semantic Pull Request
- author=dependabot[bot]
- label!=work-in-progress
- label!=manual merge
- "status-success=ci/circleci: requirements"
- "status-success=ci/circleci: datadog"
- "status-success=ci/circleci: pep8"
- "status-success=ci/circleci: py38"
- "status-success=ci/circleci: docs"
actions:
merge:
strict: "smart"
method: rebase
- 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
- "#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: This pull request is now in conflict :(
label:
add:
- conflict
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- conflict