From 530d95355d31646415bf763f51d97cf80e37e35a Mon Sep 17 00:00:00 2001
From: mpoke <marius.poke@posteo.de>
Date: Thu, 20 Jun 2024 13:24:15 +0200
Subject: [PATCH] add bots for v4.3.0

---
 .github/dependabot.yml | 20 ++++++++++++++++++++
 .mergify.yml           | 17 +++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index cb2c06d1a9..61976cf2f3 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -38,6 +38,26 @@ updates:
     labels:
       - dependencies
 
+    - package-ecosystem: gomod
+    directory: "/"
+    schedule:
+      interval: daily
+    target-branch: "release/v4.3.x"
+    # Only allow automated security-related dependency updates on release branches.
+    open-pull-requests-limit: 0
+    labels:
+      - dependencies
+
+  - package-ecosystem: gomod
+    directory: "/"
+    schedule:
+      interval: daily
+    target-branch: "release/v4.3.x-lsm"
+    # Only allow automated security-related dependency updates on release branches.
+    open-pull-requests-limit: 0
+    labels:
+      - dependencies
+
   - package-ecosystem: gomod
     directory: "/"
     schedule:
diff --git a/.mergify.yml b/.mergify.yml
index 6344fe199a..c5825b5bf8 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -26,6 +26,23 @@ pull_request_rules:
       backport:
         branches:
           - release/v4.2.x-lsm
+pull_request_rules:
+  - name: Backport patches to the release/v4.3.x branch
+    conditions:
+      - base=main
+      - label=A:backport/v4.3.x
+    actions:
+      backport:
+        branches:
+          - release/v4.3.x
+  - name: Backport patches to the release/v4.3.x-lsm branch
+    conditions:
+      - base=main
+      - label=A:backport/v4.3.x-lsm
+    actions:
+      backport:
+        branches:
+          - release/v4.3.x-lsm
   - name: Backport patches to the release/v5.x branch
     conditions:
       - base=main