forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
53 lines (50 loc) · 1.24 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
queue_rules:
- name: default
# Empty: use the branch protection rules
conditions: []
pull_request_rules:
- name: automatic merge
conditions:
- label!=manual merge
- check-success=test
- "#approved-reviews-by>=2"
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
# This rule keep the PR updated with its base branch as soon as it has 1
# approval. This makes it more likely to be ready to be merged once the
# second approval comes.
- name: prepare for merge
conditions:
- label!=manual merge
- check-success=test
- "#approved-reviews-by>=1"
actions:
update: {}
- name: update approved PRs
conditions:
- label!=manual merge
- check-success=test
- "#approved-reviews-by>=2"
actions:
update: {}
- name: warn on conflicts
conditions:
- conflict
actions:
comment:
message: "@{{author}} this pull request is now in conflict 😩"
label:
add:
- conflicts
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- conflicts