forked from teletrace/teletrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mergify.yml
88 lines (78 loc) · 2.31 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
defaults:
actions:
queue:
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
queue_rules:
- name: default
conditions:
- base=main
- check-success=Wait for CI
- or: &E2ETests
- check-success=Wait E2E Tests
- check-neutral=Wait E2E Tests
- check-skipped=Wait E2E Tests
batch_size: 5
allow_inplace_checks: false
pull_request_rules:
- name: automatic merge default priority PRs
conditions:
- base=main
- label=merge when ready
actions:
queue:
name: default
- name: automatic merge PRs with multiple reviewers approvals
conditions:
- base=main
- label=merge when approved by all
- "#review-requested=0"
actions:
queue:
name: default
- name: warn on conflicts
conditions:
- conflict
- -closed
actions:
comment:
message: "@{{author}} This PR 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
conditions:
- label=merge when ready
- "#check-failure>0"
actions:
comment:
message: "@{{author}} Your PR is failing CI"
- name: merge instructions
conditions:
- base=main
actions:
comment:
message: |
## Merge instructions
- Do NOT use the native GitHub merge button
- Add the `merge when ready` label to automatically merge the PR once it passes code-review and required checks
- Add the `merge when all approved` label to automatically merge the PR once all requested reviewers approved and it passes required checks
- Add the `urgent priority` label to move the PR up to the top of the merge queue (urgent PRs only)
### Useful info
- Remove the `merge when ready` label to remove the PR from the queue
- Comment `@Mergifyio refresh` to reevaluate the merge conditions (useful for troubleshooting)
- Check rules evaluation status by clicking on the `Summary` check details
- name: delete head branch after merge
conditions:
- merged
actions:
delete_head_branch: