Repository navigation
Include gh-aw release details in update and upgrade PRs - #79058
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Found three blocking correctness/operational issues: versioned titles break legacy rollout PR discovery, unbounded release highlights can make PR creation fail on GitHub's body limit, and organization runs repeat the same release lookup per repository. Inline comments provide details and suggested fixes.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Version-suffixed titles make unmarked local update and upgrade PRs invisible to rollout discovery, allowing duplicates and preventing --replace-existing from closing them.
1 open issue
What changed in this PR
This PR makes gh-aw update and upgrade pull requests self-describing by including the running version and matching release highlights across local, target-repository, and organization flows.
Changes:
- Add the gh-aw version to generated PR titles.
- Fetch curated release highlights while retaining release links, skipping development builds, and warning on lookup failures.
- Add focused tests and document the new behavior.
| File | Description |
|---|---|
pkg/cli/upgrade_org.go |
Include versioned titles and release highlights in target-repository upgrades. |
pkg/cli/upgrade_command.go |
Apply release details to local upgrade PRs. |
pkg/cli/update_pr_release.go |
Add shared title formatting, release lookup, and highlight extraction. |
pkg/cli/update_pr_release_test.go |
Cover titles, extraction, release versions, and lookup failures. |
pkg/cli/update_command.go |
Apply release details to local and target-repository update PRs. |
docs/src/content/docs/setup/cli.md |
Document versioned titles, highlights, and fallback behavior. |
Review effort: Balanced (adaptive)
🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic (>100 new lines) but does not have a linked Architecture Decision Record (ADR). 📄 Draft ADR committed:
|
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs, /tdd, and /grill-with-docs. Requesting changes for one regression in rollout PR discovery.
📋 Key Themes and Highlights
Key Themes
- Regression: the new
(gh aw vX)title suffix breaks the exact-title fallback inisRolloutPR, so new rollout PRs may not be detected when the body marker is missing. - Silent failure: an H4
#### Release Highlightsheading passes the loop check but is unsupported byExtractMarkdownSection, so highlights are dropped with a misleading warning. - Test gaps: neither the H4 case nor the suffixed-title rollout match is covered.
Positive Highlights
- ✅ Highlights are appended before
validatePRBody, so the size check accounts for them. - ✅ Documentation in
cli.mdmatches the new behavior. - ✅ Focused tests pass (
TestUpdatePRTitle,TestExtractUpdatePRReleaseHighlights,TestUpdateUpgradePRReleaseBody, rollout and update/upgrade tests).
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
Preserve rollout discovery for versioned titles, share release highlights across rollout workers, and bound and isolate optional release text. Complete the design ADR and regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
In response to this comment: Accepted the ADR follow-up. Reviewed and completed the generated ADR, resolved the rollout-title compatibility issue, and linked the decision record from the PR body. |
|
In response to this comment: Addressed the associated skills-review findings: versioned rollout discovery and H4 heading handling are fixed, with regression cases for both. The completion notice itself requires no separate code change. |
|
In response to this comment: Addressed all three associated code-quality findings: versioned PR discovery, complete-body size fallback, and one shared release lookup across rollout workers. Focused combined regression tests passed. |
|
In response to this comment: No code change is needed for this informational completion notice; it contains no actionable finding. The separately reported review issues were addressed in this batch. |
|
In response to this comment: No separate code change is needed for this specification-review completion notice, which contains no actionable request. The ADR and CLI documentation now describe the reviewed behavior and fallbacks. |
|
In response to this comment: No separate change is needed for the informational completion notice. The batch adds regression coverage for title discovery, H4 rejection, body-size boundaries, external-text fencing, and cross-process cache reuse. |
|
In response to this comment: No code change is needed for this historical specification-review ledger entry. It records an earlier snapshot; the current ADR and PR description reflect the revised implementation. |
|
In response to this comment: No code change is needed for this historical review ledger entry itself. The three associated findings have been addressed with regression coverage in the pushed batch. |
|
In response to this comment: Accepted. Completed the ADR's context, decision, alternatives, and consequences, linked it from the PR body, and fixed the marker-less rollout discovery regression rather than retaining it as a trade-off. |

Summary
Make generated update and upgrade pull requests self-describing so reviewers can identify the gh-aw version and understand the release without leaving the PR.
ADR: ADR-79058: Inline gh-aw Release Highlights and Version in Update and Upgrade PRs
Validation
Focused combined release and rollout regression tests passed, including versioned discovery, H4 rejection, exact character-limit boundaries, fence escaping, and cross-process cache reuse. Build, standard Go lint, impacted tests, schema freshness, and workflow drift checks passed.
The final aggregate gate reports three pre-existing custom-linter findings in unchanged code:
discoverRolloutPRsexceeds the function-length limit, andparseOrgRolloutResulthas newline-splitting and string-to-JSON-copy diagnostics. These unrelated functions were left unchanged.