From 7ebea7edb6fea554fa521b022c3eb354e24a263c Mon Sep 17 00:00:00 2001 From: codecalm Date: Thu, 10 Sep 2026 01:24:21 +0200 Subject: [PATCH] Limit the branch guard to PRs into dev and same-repo v2-dev exemption --- .github/workflows/branch-guard.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-guard.yml b/.github/workflows/branch-guard.yml index 3e313bd6c..f2f7b6cf5 100644 --- a/.github/workflows/branch-guard.yml +++ b/.github/workflows/branch-guard.yml @@ -4,7 +4,6 @@ on: pull_request: branches: - dev - - main permissions: contents: read @@ -13,7 +12,9 @@ jobs: guard: name: Reject branches forked from v2-dev # v2-dev itself is the tracking PR for the whole 2.0 delta, so it is exempt. - if: github.head_ref != 'v2-dev' + if: >- + github.head_ref != 'v2-dev' + || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - name: Clone repository