Repository navigation
fix(required-contexts): refuse workflow_run branch filters on a status publisher - #61
Conversation
…s publisher GitHub applies workflow_run branches/branches-ignore to the triggering run's branch, so a filtered CI/gate publisher never posts the status on a PR head and the PR waits for ever. The checker now refuses any branch filter on the publisher except branches: ["**"], with negative fixtures for both keys. Ported from hyperpolymath/rsr-template-repo#481; raised by CodeRabbit on hyperpolymath/mathesis#106. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
|
Generated by Claude Code |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |



Why
This ports hyperpolymath/rsr-template-repo#481, the source fix, to this repo's copy of the checker. CodeRabbit raised the gap on hyperpolymath/mathesis#106.
GitHub applies
on.workflow_run.branchesandbranches-ignoreto the triggering run's branch. A branch-filteredCI/gatepublisher would therefore never post the required status on a PR head, and the PR would wait forever.Change
scripts/check-required-contexts.sh: identical to the source change. A status publisher fails onworkflow_run.branches, unless the value is exactly["**"], and on anybranches-ignore.tests/workflows/squabble_gate_test.sh: the same negative fixtures, message checks and all-branches positive fixture as the source, written against this repo's trigger (["**", "!CI gate"]).CHANGELOG.adoc: a Fixed entry.Proven (local)
squabble_gate_test.shwithout the checker change: exit 1, 151 passed, 4 failed. These are the 4 new checks.scripts/check-required-contexts.sh .: OK.Not proven
Generated by Claude Code