This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.mergify.yml
71 lines (69 loc) · 1.84 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
---
defaults:
actions:
queue:
name: default
method: rebase
rebase_fallback: merge
update_method: rebase
queue_rules:
- name: default
conditions:
- "status-success=codespell"
- "status-success=test and build (1.17)"
- "status-success=lint"
- "status-success=DCO"
pull_request_rules:
- name: remove outdated approvals
conditions:
- base~=^(main)|(release-.+)$
actions:
dismiss_reviews:
approved: true
changes_requested: false
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
# yamllint disable-line rule:truthy
message: "This pull request now has conflicts with the target branch.
Could you please resolve conflicts and force push the corrected
changes? 🙏"
- name: automatic merge
conditions:
- label!=DNM
- base~=^(main)|(release-.+)$
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
- "status-success=codespell"
- "status-success=test and build (1.17)"
- "status-success=lint"
- "status-success=DCO"
actions:
queue: {}
dismiss_reviews: {}
delete_head_branch: {}
- name: automatic merge PR having ready-to-merge label
conditions:
- label!=DNM
- label=ready-to-merge
- base~=^(main)|(release-.+)$
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "status-success=codespell"
- "status-success=test and build (1.17)"
- "status-success=lint"
- "status-success=DCO"
actions:
queue: {}
dismiss_reviews: {}
delete_head_branch: {}
- name: backport patches to release v0.1 branch
conditions:
- base=main
- label=backport-to-release-v0.1
actions:
backport:
branches:
- release-v0.1