Skip to content

Name the PR Aggregator Only on Pull Request Runs and Drop the Branch Filter - #244

Merged
ptr727 merged 3 commits into
developfrom
feature/d15-aggregator-name
Nov 9, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/d15-aggregator-name

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

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

  • Aggregator name: check-workflow-status takes the hub snippet's expression name:, so only a pull_request run posts the ruleset-bound Check pull request workflow status job. A workflow_dispatch run posts Check workflow status job. Both end in "job". The two comment lines are carried from the hub snippet.
  • Trigger: pull_request: no longer filters branches: [main, develop], matching catalog/snippets/workflows/test-pull-request-smoke.yml. With the filter, a stacked pull request opened against a feature branch never ran. Retargeted onto develop, it fires only the edited activity 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 comments label, since the prose gate's comment-added rule fires on the two carried comment lines.

Pre-existing findings, not filed

  • .github/workflows/test-pull-request.yml smoke-build if: (pre-existing): the hub snippet also runs the smoke build on workflow_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.yml result loop (pre-existing): it accepts skipped for changes and validate, where the hub requires success. Neither job has an if: or a needs:, so neither can be skipped, and the branch is unreachable.

Local Review

Recorded local-strict-review passes. The first raised two findings: the missing comment lines were fixed in a1c8119, 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

ptr727 and others added 3 commits November 9, 2026 07:25
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]>
@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 15:42
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • 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

@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

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

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.

🟢 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/develop branch filter from the pull_request trigger.
  • Adds comments documenting the required-check behavior.
  • Review finding: Retargeting a pull request still does not trigger validation because edited is 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

@ptr727
ptr727 merged commit 9832204 into develop Nov 9, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/d15-aggregator-name branch November 9, 2026 15:54
@ptr727 ptr727 mentioned this pull request Nov 9, 2026
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