Skip to content

Commit ec4288e

Browse files
authored
mergify: support for backport-major.minor (#5483)
1 parent cdfb299 commit ec4288e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.mergify.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ pull_request_rules:
122122
This pull request does not have a backport label. Could you fix it @{{author}}? 🙏
123123
To fixup this pull request, you need to add the backport labels for the needed
124124
branches, such as:
125-
* `backport-v./d./d.0` is the label to automatically backport to the `8./d` branch. `/d` is the digit
126-
- name: add backport-v8.x label for main only
125+
* `backport-./d./d` is the label to automatically backport to the `8./d` branch. `/d` is the digit
126+
- name: add backport-8.x label for main only
127127
conditions:
128-
- -label~=^backport-v8.x
128+
- -label~=^backport-8.x
129129
- base=main
130130
- -merged
131131
- -closed
@@ -135,11 +135,11 @@ pull_request_rules:
135135
`backport-v8.x` has been added to help with the transition to the new branch `8.x`.
136136
label:
137137
add:
138-
- backport-v8.x
138+
- backport-8.x
139139
- name: backport patches to 7.17 branch
140140
conditions:
141141
- merged
142-
- label=backport-v7.17.0
142+
- label~=^(backport-v7.17.0|backport-7.17)$
143143
actions:
144144
backport:
145145
assignees:
@@ -321,7 +321,7 @@ pull_request_rules:
321321
- name: backport patches to 8.15 branch
322322
conditions:
323323
- merged
324-
- label=backport-v8.15.0
324+
- label~=^(backport-v8.15.0|backport-8.15)$
325325
actions:
326326
backport:
327327
assignees:
@@ -334,7 +334,7 @@ pull_request_rules:
334334
- name: backport patches to 8.x branch
335335
conditions:
336336
- merged
337-
- label=backport-v8.x
337+
- label~=^(backport-v8.x|backport-8.x)$
338338
actions:
339339
backport:
340340
assignees:

0 commit comments

Comments
 (0)