From ee68d1c70c323355dca9c96a803b53c3e1d779bb Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 2 Mar 2026 17:48:32 -0500 Subject: [PATCH] CI: Disallow pulls to stable --- .github/workflows/no-pulls.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/no-pulls.yml diff --git a/.github/workflows/no-pulls.yml b/.github/workflows/no-pulls.yml new file mode 100644 index 000000000..b86779b26 --- /dev/null +++ b/.github/workflows/no-pulls.yml @@ -0,0 +1,15 @@ +--- +# Block PRs against stable branch +name: "Check PR not against 'stable'" +on: + pull_request: + branches: [stable] + +jobs: + block-pr: + runs-on: ubuntu-latest + steps: + - name: Fail and block PR + run: |- + echo "Error: Pull requests directly to 'stable' are not allowed. Please PR against 'master'." + exit 1