Repository navigation
Name the PR Aggregator Only on Pull Request Runs and Drop the Branch Filter - #244
Merged
Merged
Conversation
test-pull-request.yml also runs on workflow_dispatch, and its aggregator posted the ruleset-bound "Check pull request workflow status job" context on every run. A dispatch on a PR's head could post that required context without the PR run's gates. Use the hub snippet's expression name, so only a pull_request run yields the required name, per WORKFLOW.md D1.5. Measured by audit run 2026-11-09T15:18:48Z | hub c175d557 | branch override develop. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Carry the hub snippet's two comment lines, so a later edit does not restore the literal name and reopen the dispatch path D1.5 closes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drop the pull_request branch filter, matching the hub's release template. A filter naming main and develop leaves a stacked pull request retargeted onto develop with its required check pending, since a retarget fires only the edited activity type. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Owner
Author
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟢 Approval recommended
The review records no active issues, so no outstanding blockers remain for the workflow changes.
No open issues 🎉
What changed in this PR
Updates the pull-request workflow so required status checks are emitted only by actual pull_request runs, while removing the base-branch restriction.
Changes:
- Makes the aggregator job name event-dependent.
- Removes the
main/developbranch filter from thepull_requesttrigger. - Adds comments documenting the required-check behavior.
- Review finding: Retargeting a pull request still does not trigger validation because
editedis not included in the default activity types. This moderate issue has 1 vote.
| File | Description |
|---|---|
.github/workflows/test-pull-request.yml |
Adjusts pull-request triggers and assigns event-specific aggregator job names. |
Review effort: Lite
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the audit's D1.5 interface finding on
.github/workflows/test-pull-request.yml, and drops the pull request branch filter to match the hub's release template.Measured by
audit run 2026-11-09T15:18:48Z | hub c175d557 | branch override develop: "job 'check-workflow-status' is named 'Check pull request workflow status job' on a run other than pull_request, so a run the pull request did not start can post the required check on its head (WORKFLOW.md D1.5)".Merge Order
Merge this first. The sibling instruction-set resync, #243, describes the expression name this adds in its WORKFLOW.md D1.5 clause.
What Changed
check-workflow-statustakes the hub snippet's expressionname:, so only apull_requestrun posts the ruleset-boundCheck pull request workflow status job. Aworkflow_dispatchrun postsCheck workflow status job. Both end in "job". The two comment lines are carried from the hub snippet.pull_request:no longer filtersbranches: [main, develop], matchingcatalog/snippets/workflows/test-pull-request-smoke.yml. With the filter, a stacked pull request opened against a feature branch never ran. Retargeted ontodevelop, it fires only theeditedactivity type, which the default types omit, so its required check stayed pending until the next push. No ruleset covers other base branches, so the extra runs bind nothing.This PR carries the
commentslabel, since the prose gate'scomment-addedrule fires on the two carried comment lines.Pre-existing findings, not filed
.github/workflows/test-pull-request.ymlsmoke-buildif:(pre-existing): the hub snippet also runs the smoke build onworkflow_dispatch. Here a manual dispatch whose paths-filter finds no change skips the build, and the aggregator goes green without building. After this PR such a run no longer posts the required check, so the effect is a misleading manual run only..github/workflows/test-pull-request.ymlresult loop (pre-existing): it acceptsskippedforchangesandvalidate, where the hub requiressuccess. Neither job has anif:or aneeds:, so neither can be skipped, and the branch is unreachable.Local Review
Recorded
local-strict-reviewpasses. The first raised two findings: the missing comment lines were fixed ina1c8119, and the D1.5 doc clause moved to #243, which already edits that line. The passes after it, including the one covering the filter removal, raised none.🤖 Generated with Claude Code