Repository navigation
Name the Required Aggregator Only on a Pull Request Run, and Drop the Base Filter - #406
Conversation
The test pull request workflow also runs on workflow_dispatch, and its aggregator job always took the ruleset-bound name "Check pull request workflow status job". A dispatch on a pull request's head could then post the required check without the pull request's own run. The job now takes that name only when the event is pull_request and is named "Check workflow status job" otherwise, matching the hub's own test-pull-request.yml, per WORKFLOW.md D1.5. Audit run 2026-11-09T16:23:30Z | hub c175d557. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…visory Restore the one-line comment the hub's copy carries, so a later edit does not fold the expression back into the plain string. OPERATIONS.md said a dispatch of test-pull-request.yml can decide a pull request's required check. Its aggregator no longer takes the ruleset-bound name, so that run is advisory and only the pull request's own run posts it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The local Workflows and Hooks bullet said without condition that the test pull request workflow's aggregator is the required check. A dispatch run's aggregator no longer takes that name, so the sentence now says only the pull request run's is required. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
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 44 minutes. 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. |
There was a problem hiding this comment.
🟡 Changes recommended
An active documentation issue remains in WORKFLOW.md at line 315, where the sentence “a dispatch's is advisory” is grammatically incomplete and fails to identify what is advisory.
1 open issue
What changed in this PR
This pull request prevents manual workflow_dispatch runs from publishing the ruleset-bound required check, ensuring only pull-request runs can satisfy that check. It also updates documentation to distinguish required pull-request results from advisory dispatch results.
Changes:
- Makes the aggregator name conditional on
github.event_name. - Adds a comment explaining the conditional naming behavior.
- Updates
WORKFLOW.mdandOPERATIONS.mdto describe dispatch results as advisory. WORKFLOW.mdretains a documentation nit: the dispatch sentence is grammatically incomplete and should specify what is advisory.
| File | Description |
|---|---|
WORKFLOW.md |
Documents the distinction between required pull-request checks and advisory dispatch results. |
OPERATIONS.md |
Clarifies the behavior of dispatch-based smoke builds and checks. |
.github/workflows/test-pull-request.yml |
Uses the ruleset-bound required check name only for pull_request runs. |
Review effort: Lite
A pull_request trigger filtered to main and develop gives a stacked pull request no run when it is retargeted onto develop, since a retarget fires the edited activity type the default types omit. The hub settled this in ptr727/ProjectTemplate#3744 by dropping the filter, so every pull request gets its run when opened and the check on its head SHA carries across a retarget. This matches the hub's caller stub. Co-Authored-By: Claude Opus 5.5 <[email protected]>
"a dispatch's is advisory" left its possessive without a noun. It now reads "a dispatch run's aggregator is advisory". Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |

Summary
Brings
.github/workflows/test-pull-request.ymlin line with WORKFLOW.md D1.5 and the hub's caller stub.interface:finding. The workflow also runs onworkflow_dispatch, and its aggregator always took the ruleset-bound nameCheck pull request workflow status job. So a dispatch on a pull request's head could post the required check without that pull request's own run, which is the only one that runs the prose gate. Thename:is now${{ github.event_name == 'pull_request' && 'Check pull request workflow status job' || 'Check workflow status job' }}, byte-identical to the hub's own workflow. The ruleset context is unchanged.pull_request: branches: [main, develop]gave a stacked pull request no run when it was retargeted ontodevelop, since a retarget fires theeditedactivity type the default types omit. Decide: How should the stacked-PR trap be fixed, where both caller stubs (test-pull-request.yml,test-pull-request-smoke.yml, mirrored indocs/reusable-workflows.mdand the hub's own workflow) filter `p? ProjectTemplate#3744 settled this by dropping the filter. Every pull request gets its run when it opens, and the check on its head SHA carries across a retarget. The audit does not detect this one. A Copilot finding on Resync the Instruction Set With Hub Main #405 led to it.commentslabel for it.Verification
scripts/docker_lint.py: success. The pre-commit prose and EOL gates pass.spec/audit.pyaccepts this expression form for the required-check name.main/developbase: smoke build,validatehook, concurrency, and secrets. It raised nothing, and neither did the last pass.Audit run 2026-11-09T16:23:30Z | hub c175d557.
🤖 Generated with Claude Code