Skip to content

Commit 6c625cc

Browse files
authored
modify mergify config to adapt 2.1-dev (#21536)
1 parent e6f702b commit 6c625cc

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

.github/mergify.yml

+32-32
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ queue_rules:
44
checks_timeout: 4h
55
merge_method: squash
66
commit_message_template: |
7-
{{ title }} (#{{ number }})
7+
{{ title }} (#{{ number }})
88
9-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
9+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
1010
11-
Approved by: @{{ approved_reviews_by | join(', @') }}
12-
- name: release-1.2
11+
Approved by: @{{ approved_reviews_by | join(', @') }}
12+
- name: release-2.0
1313
merge_conditions: []
1414
checks_timeout: 4h
1515
merge_method: squash
1616
commit_message_template: |
17-
{{ title }} (#{{ number }})
17+
{{ title }} (#{{ number }})
1818
19-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
19+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
2020
21-
Approved by: @{{ approved_reviews_by | join(', @') }}
22-
- name: release-2.0
21+
Approved by: @{{ approved_reviews_by | join(', @') }}
22+
- name: release-2.1
2323
merge_conditions: []
2424
checks_timeout: 4h
2525
merge_method: squash
2626
commit_message_template: |
2727
{{ title }} (#{{ number }})
28-
28+
2929
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
30-
30+
3131
Approved by: @{{ approved_reviews_by | join(', @') }}
3232
3333
pull_request_rules:
@@ -40,83 +40,83 @@ pull_request_rules:
4040
queue:
4141
name: main
4242

43-
- name: Automatic queue on approval for release-1.2
43+
- name: Automatic queue on approval for release-2.0
4444
conditions:
4545
- "#changes-requested-reviews-by<=0"
4646
- label!=do-not-merge/wip
47-
- base=1.2-dev
47+
- base=2.0-dev
4848
actions:
4949
queue:
50-
name: release-1.2
50+
name: release-2.0
5151

52-
- name: Automatic queue on approval for release-2.0
52+
- name: Automatic queue on approval for release-2.1
5353
conditions:
5454
- "#changes-requested-reviews-by<=0"
5555
- label!=do-not-merge/wip
56-
- base=2.0-dev
56+
- base=2.1-dev
57+
- approved-reviews-by=XuPeng-SH
5758
actions:
5859
queue:
59-
name: release-2.0
60+
name: release-2.1
6061

62+
- name: Auto Request Reviewer For Non Main Branch
63+
conditions:
64+
- base!=main
65+
actions:
66+
request_reviews:
67+
users:
68+
- XuPeng-SH
6169

6270
- name: Auto update branch
6371
conditions:
6472
- created-at>=00:10 ago
6573
actions:
66-
update:
67-
68-
# - name: Auto Request Reviewer For Non Main Branch
69-
# conditions:
70-
# - base!=main
71-
# actions:
72-
# request_reviews:
73-
# users:
74-
# - sukki37
74+
update:
7575

7676
- name: label for Bug
77-
conditions:
77+
conditions:
7878
- body~=(?im)- \[x\] BUG
7979
actions:
8080
label:
8181
add:
8282
- kind/bug
8383
- name: label for Feature
84-
conditions:
84+
conditions:
8585
- body~=(?im)- \[x\] Feature
8686
actions:
8787
label:
8888
add:
8989
- kind/feature
9090
- name: label for Improvement
91-
conditions:
91+
conditions:
9292
- body~=(?im)- \[x\] Improvement
9393
actions:
9494
label:
9595
add:
9696
- kind/enhancement
9797
- name: label for Documentation
98-
conditions:
98+
conditions:
9999
- body~=(?im)- \[x\] Documentation
100100
actions:
101101
label:
102102
add:
103103
- kind/documentation
104104
- name: label for Test and CI
105-
conditions:
105+
conditions:
106106
- body~=(?im)- \[x\] Test and CI
107107
actions:
108108
label:
109109
add:
110110
- kind/test-ci
111111
- name: label for Code Refactoring
112-
conditions:
112+
conditions:
113113
- body~=(?im)- \[x\] Code Refactoring
114114
actions:
115115
label:
116116
add:
117117
- kind/refactor
118118
- name: label for API-change
119-
conditions:
119+
conditions:
120120
- body~=(?im)- \[x\] API-change
121121
actions:
122122
label:

0 commit comments

Comments
 (0)