From c369d75eb7826ef8381ea9bcedb0a0ae79b28a2d Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 4 Feb 2025 21:43:06 +0100 Subject: [PATCH] mergify: support backport-active-branches and backport-active-minors --- .mergify.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index ecdadb993c..24d85677d8 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -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: @@ -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 }}"