Skip to content

fix(required-contexts): refuse workflow_run branch filters on a status publisher - #61

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/sweet-edison-yp088x
Nov 23, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/sweet-edison-yp088x

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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.branches and branches-ignore to the triggering run's branch. A branch-filtered CI/gate publisher 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 on workflow_run.branches, unless the value is exactly ["**"], and on any branches-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.sh without the checker change: exit 1, 151 passed, 4 failed. These are the 4 new checks.
  • With the change: exit 0, 155 passed, 0 failed.
  • scripts/check-required-contexts.sh .: OK.

Not proven

  • Live CI on this head.


Generated by Claude Code

…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
@gitnotebooks

gitnotebooks Bot commented Nov 23, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e945e61 and b56f558.

Files selected for processing: 3

  • CHANGELOG.adoc
  • scripts/check-required-contexts.sh
  • tests/workflows/squabble_gate_test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

pre-commit.ci - pr reports "error during ci config" here. This is not caused by this PR: it errors on every PR here (see #56), because the only config is ci/.pre-commit-config.yaml and pre-commit.ci looks for one at the root. It is not a required check; the only required check is CI/gate.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 23, 2026 20:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T20:32:09.964161Z b56f558 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T20:33:46.324695Z b56f558 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath merged commit e0a91ad into main Nov 23, 2026
51 of 52 checks passed
@hyperpolymath
hyperpolymath deleted the claude/sweet-edison-yp088x branch November 23, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants