Repository navigation
Expand file tree
/
Copy pathmergify.yml
More file actions
128 lines (120 loc) · 3.6 KB
/
Copy pathmergify.yml
File metadata and controls
128 lines (120 loc) · 3.6 KB
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
126
127
128
pull_request_rules:
- name: merge PR (v0.38.x)
description: merge PR if it passes tests and there are no conflicts (v0.38.x)
conditions:
- "-label = manual-backport"
- author = mergify[bot]
- head ~= ^mergify/bp/
- base = v0.38.x
- "check-success = Build (arm, linux)"
- "check-success = check"
- "check-success = golangci-lint"
- "check-success = e2e-test"
- "check-success = tests (00)"
- "check-success = tests (01)"
- "check-success = tests (02)"
- "check-success = tests (03)"
- "check-success = tests (04)"
- "check-success = tests (05)"
- "check-success = test_abci_cli"
- "check-success = test_apps"
actions:
merge:
method: squash
- name: merge PR (v0.39.x)
description: merge PR if it passes tests and there are no conflicts (v0.39.x)
conditions:
- "-label = manual-backport"
- author = mergify[bot]
- head ~= ^mergify/bp/
- base = v0.39.x
- "check-success = Build (arm, linux)"
- "check-success = check"
- "check-success = golangci-lint"
- "check-success = e2e-test"
- "check-success = tests (00)"
- "check-success = tests (01)"
- "check-success = tests (02)"
- "check-success = tests (03)"
- "check-success = tests (04)"
- "check-success = tests (05)"
- "check-success = test_abci_cli"
- "check-success = test_apps"
actions:
merge:
method: squash
- name: merge PR (v0.40.x)
description: merge PR if it passes tests and there are no conflicts (v0.40.x)
conditions:
- "-label = manual-backport"
- author = mergify[bot]
- head ~= ^mergify/bp/
- base = v0.40.x
- "check-success = Build (arm, linux)"
- "check-success = check"
- "check-success = golangci-lint"
- "check-success = e2e-test"
- "check-success = tests (00)"
- "check-success = tests (01)"
- "check-success = tests (02)"
- "check-success = tests (03)"
- "check-success = tests (04)"
- "check-success = tests (05)"
- "check-success = test_abci_cli"
- "check-success = test_apps"
actions:
merge:
method: squash
- name: automatic approval for Dependabot pull requests
conditions:
- author = dependabot[bot]
actions:
review:
type: APPROVE
message: Automatically approving dependabot
- name: automatically merge PR with automerge label and no manual-backport label
conditions:
- "-label = manual-backport"
- label = automerge
actions:
merge:
method: squash
- name: Make sure PR are up to date before merging
description: >-
This automatically updates PRs when they are out-of-date with the base
branch to avoid semantic conflicts (next step is using a merge queue).
conditions:
- "-draft"
- "#approved-reviews-by >= 1"
actions:
update:
- name: backport patches to v0.40.x branch
conditions:
- base = main
- label = backport-to-v0.40.x
actions:
backport:
branches:
- v0.40.x
assignees:
- "{{ author }}"
- name: backport patches to v0.39.x branch
conditions:
- base = main
- label = backport-to-v0.39.x
actions:
backport:
branches:
- v0.39.x
assignees:
- "{{ author }}"
- name: backport patches to v0.38.x branch
conditions:
- base = main
- label = backport-to-v0.38.x
actions:
backport:
branches:
- v0.38.x
assignees:
- "{{ author }}"