From cafb95e7bd2b5c1297082a23d012d1caab671449 Mon Sep 17 00:00:00 2001 From: bashermens <31279994+hermensbas@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:21:57 +0100 Subject: [PATCH] Create check_pr_source.yml (#2098) --- check_pr_source.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 check_pr_source.yml diff --git a/check_pr_source.yml b/check_pr_source.yml new file mode 100644 index 00000000..b0ead9c8 --- /dev/null +++ b/check_pr_source.yml @@ -0,0 +1,19 @@ +name: Enforce test-staging → main + +on: + pull_request: + branches: + - main + +jobs: + require-test-staging: + runs-on: ubuntu-22.04 + steps: + - name: Ensure PR source is test-staging + run: | + echo "Base: ${{ github.event.pull_request.base.ref }}" + echo "Head: ${{ github.event.pull_request.head.ref }}" + if [ "${{ github.event.pull_request.head.ref }}" != "test-staging" ]; then + echo "✖ Pull request must come from test-staging" + exit 1 + fi