From b703992ac55660b66d7f9de181992678e73f0e63 Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Thu, 2 Jul 2026 19:28:32 -0400 Subject: [PATCH] Restrict block-remove-before-merge check to PRs targeting main Only block merging when the PR base branch is main. PRs targeting other branches (e.g. feature or release branches) are now a no-op for this check. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/block-remove-before-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/block-remove-before-merge.yml b/.github/workflows/block-remove-before-merge.yml index f9df22ebe..0b491ea81 100644 --- a/.github/workflows/block-remove-before-merge.yml +++ b/.github/workflows/block-remove-before-merge.yml @@ -11,7 +11,7 @@ permissions: jobs: check-paths: name: "No remove-before-merge directories" - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.base_ref == 'main' runs-on: ubuntu-latest steps: - name: Check for remove-before-merge paths in PR