From 90bb7004a5180cbf04eabc6f73ef8144b550f403 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 5 Feb 2025 17:12:31 +0100 Subject: [PATCH] mergify: support backport-active-8, backport-active-9 and backport-active-all (#42594) --- .mergify.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index ea8948e485b0..b7c5286316f9 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -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: @@ -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 }}"