Skip to content

Name the Required Aggregator Only on a Pull Request Run, and Drop the Base Filter - #406

Merged
ptr727 merged 5 commits into
developfrom
fix-aggregator-dispatch-name
Nov 9, 2026
Merged

ptr727 merged 5 commits into
developfrom
fix-aggregator-dispatch-name

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Brings .github/workflows/test-pull-request.yml in line with WORKFLOW.md D1.5 and the hub's caller stub.

  • Conditional aggregator name. This closes the audit's interface: finding. The workflow also runs on workflow_dispatch, and its aggregator always took the ruleset-bound name Check 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. The name: 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.
  • No base-branch filter. pull_request: branches: [main, develop] gave a stacked pull request no run when it was retargeted onto develop, since a retarget fires the edited activity 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 in docs/reusable-workflows.md and 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.
  • One comment line says why the name is conditional, so a later edit does not fold it back. This pull request carries the comments label for it.
  • OPERATIONS.md (the hub pin bump bullet) and WORKFLOW.md ("Workflows and Hooks") now say a dispatch's result is advisory and CI runs for every pull request.

Verification

  • actionlint, markdownlint, and editorconfig-checker through the hub's scripts/docker_lint.py: success. The pre-commit prose and EOL gates pass.
  • The hub's spec/audit.py accepts this expression form for the required-check name.
  • Local strict review, five passes. They raised the OPERATIONS.md sentence, the missing comment, and the WORKFLOW.md sentence, each fixed. The pass over the filter drop checked a pull request into a non-main/develop base: smoke build, validate hook, 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

ptr727 and others added 3 commits November 9, 2026 08:32
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]>
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 9, 2026
Copilot AI lite review requested due to automatic review settings November 9, 2026 16:38
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 9, 2026
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 8e39b02a17609b7a028dce82132a20e283ab5d4e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

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 44 minutes.

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 1bdb93f and 9757c8f.

Files selected for processing: 3

  • .github/workflows/test-pull-request.yml
  • OPERATIONS.md
  • WORKFLOW.md
  • 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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.md and OPERATIONS.md to describe dispatch results as advisory.
  • WORKFLOW.md retains 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

Comment thread WORKFLOW.md Resolved
ptr727 and others added 2 commits November 9, 2026 08:45
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]>
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 9757c8f6771b11639b219f8bb103bafb8b426d30, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727 ptr727 changed the title Name the Required Aggregator Only on a Pull Request Run Name the Required Aggregator Only on a Pull Request Run, and Drop the Base Filter Nov 9, 2026
@ptr727
ptr727 merged commit 724a6a2 into develop Nov 9, 2026
8 checks passed
@ptr727
ptr727 deleted the fix-aggregator-dispatch-name branch November 9, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants