Skip to content

Commit

Permalink
mergify: support backport-active-8, backport-active-9 and backport-ac…
Browse files Browse the repository at this point in the history
…tive-all (elastic#42594)
  • Loading branch information
v1v authored Feb 5, 2025
1 parent 8cb39a0 commit 90bb700
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ pull_request_rules:
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:
* `backport-8./d` is the label to automatically backport to the `8./d` branch. `/d` is the digit
* `backport-active-all` is the label that automatically backports to all active branches.
* `backport-active-8` is the label that automatically backports to all active minor branches for the 8 major.
* `backport-active-9` is the label that automatically backports to all active minor branches for the 9 major.
- name: notify the backport has not been merged yet
conditions:
Expand Down Expand Up @@ -406,3 +409,56 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"

- name: backport patches to all active minor branches for the 8 major.
conditions:
- merged
- label=backport-active-8
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:
- "8.18"
- "8.17"
- "8.16"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to all active minor branches for the 9 major.
conditions:
- merged
- label=backport-active-9
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"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to all active branches
conditions:
- merged
- label=backport-active-all
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 90bb700

Please sign in to comment.