From 09140c0c935be85875a4bb8823184685754e4cb9 Mon Sep 17 00:00:00 2001 From: Tom Martensen Date: Wed, 22 Oct 2025 10:19:22 +0200 Subject: [PATCH] ROX-31317: disable mintmaker auto-approvals for release branches (#2341) Co-authored-by: Misha Sugakov <537715+msugakov@users.noreply.github.com> --- .github/renovate.json5 | 5 ++++- .github/workflows/auto-approve.yml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 615d4bc0d..272454b83 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -85,5 +85,8 @@ "at any time" ], }], - "labels": ["auto-approve"], + "labels": [ + // Add auto-approve label which triggers the corresponding workflow. + "auto-approve", + ], } diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index fbf3e2332..5277bbace 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -7,9 +7,9 @@ on: jobs: auto-approve: - name: Auto-approve Konflux updates + name: Auto-approve Konflux updates for default branch runs-on: ubuntu-latest - if: github.actor == 'red-hat-konflux[bot]' && github.event.label.name == 'auto-approve' + if: github.actor == 'red-hat-konflux[bot]' && github.event.label.name == 'auto-approve' && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch steps: - env: GH_TOKEN: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}