From 6b9febd478cdbc2415e1c60f02e45da07806152f Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Fri, 22 Nov 2024 13:38:32 +0100
Subject: [PATCH] [Release] add-backport-next (#41706) (#41716)

Co-authored-by: elasticmachine <infra-root+elasticmachine@elastic.co>
(cherry picked from commit a5e40270f39af049d54174aeb0fdec900f133d26)

Co-authored-by: elastic-vault-github-plugin-prod[bot] <150874479+elastic-vault-github-plugin-prod[bot]@users.noreply.github.com>
---
 .mergify.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.mergify.yml b/.mergify.yml
index 2e85bf5a4ab..ee6798e280d 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -372,3 +372,16 @@ pull_request_rules:
         labels:
           - "backport"
         title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
+  - name: backport patches to 8.17 branch
+    conditions:
+      - merged
+      - label=backport-8.17
+    actions:
+      backport:
+        assignees:
+          - "{{ author }}"
+        branches:
+          - "8.17"
+        labels:
+          - "backport"
+        title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"