Skip to content

Commit

Permalink
mergify: support backport-active-branches and backport-active-minors
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Feb 4, 2025
1 parent 9350ef5 commit c369d75
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ pull_request_rules:
* `backport-8./d` is the label to automatically backport to the `8./d` branch. `/d` is the digit.
* `backport-9./d` is the label to automatically backport to the `9./d` branch. `/d` is the digit.
* `backport-8.x` is the label to automatically backport to the `8.x` branch.
* `backport-active-branches` is the label to automatically backport to all active branches
* `backport-active-minors` is the label to automatically backport to all active minor branches
- name: remove backport-skip label
conditions:
Expand Down Expand Up @@ -434,3 +436,44 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}] {{ title }} (backport #{{ number }})"

- name: backport patches to all active minor branches
conditions:
- merged
- base=main
- label=backport-active-minors
actions:
backport:
assignees:
- "{{ author }}"
# NOTE: this list needs to be changed when a new minor branch is created
# or an existing minor branch reached EOL.
branches:
- "9.0"
- "8.18"
- "8.17"
- "8.16"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to all active branches
conditions:
- merged
- base=main
- label=backport-active-branches
actions:
backport:
assignees:
- "{{ author }}"
# NOTE: this list needs to be changed when a new minor branch is created
# or an existing release branch reached EOL.
branches:
- "9.0"
- "8.18"
- "8.17"
- "8.16"
- "8.x"
- "7.17"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"

0 comments on commit c369d75

Please sign in to comment.