Skip to content

Commit 5c5b494

Browse files
authored
mergify: support backport-active-8, backport-active-9, backport-active-all (#2989)
* mergify: support backport-active-8, backport-active-9, backport-active-all * nit
1 parent ea883c3 commit 5c5b494

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.mergify.yml

+56
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ pull_request_rules:
131131
To fixup this pull request, you need to add the backport labels for the needed
132132
branches, such as:
133133
* `backport-v./d./d./d` is the label to automatically backport to the `8./d` branch. `/d` is the digit
134+
* `backport-active-all` is the label that automatically backports to all active branches.
135+
* `backport-active-8` is the label that automatically backports to all active minor branches for the 8 major.
136+
* `backport-active-9` is the label that automatically backports to all active minor branches for the 9 major.
134137
**NOTE**: `backport-v8.x` has been added to help with the transition to the new branch 8.x.
135138
label:
136139
add:
@@ -378,3 +381,56 @@ pull_request_rules:
378381
labels:
379382
- "backport"
380383
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
384+
385+
- name: backport patches to all active minor branches for the 8 major.
386+
conditions:
387+
- merged
388+
- label=backport-active-8
389+
actions:
390+
backport:
391+
assignees:
392+
- "{{ author }}"
393+
# NOTE: this list needs to be changed when a new minor branch is created
394+
# or an existing minor branch reached EOL.
395+
branches:
396+
- "8.18"
397+
- "8.17"
398+
- "8.16"
399+
labels:
400+
- "backport"
401+
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
402+
- name: backport patches to all active minor branches for the 9 major.
403+
conditions:
404+
- merged
405+
- label=backport-active-9
406+
actions:
407+
backport:
408+
assignees:
409+
- "{{ author }}"
410+
# NOTE: this list needs to be changed when a new minor branch is created
411+
# or an existing minor branch reached EOL.
412+
branches:
413+
- "9.0"
414+
labels:
415+
- "backport"
416+
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
417+
- name: backport patches to all active branches
418+
conditions:
419+
- merged
420+
- label=backport-active-all
421+
actions:
422+
backport:
423+
assignees:
424+
- "{{ author }}"
425+
# NOTE: this list needs to be changed when a new minor branch is created
426+
# or an existing release branch reached EOL.
427+
branches:
428+
- "9.0"
429+
- "8.18"
430+
- "8.17"
431+
- "8.16"
432+
- "8.x"
433+
- "7.17"
434+
labels:
435+
- "backport"
436+
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"

0 commit comments

Comments
 (0)