Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mergify: support backport-active-8, backport-active-9 and backport-active-all #4404

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ pull_request_rules:
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:
* `backport-./d./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: backport patches to 8.17 branch
conditions:
- merged
Expand Down Expand Up @@ -316,3 +319,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 }}"
Loading