Skip to content

Include gh-aw release details in update and upgrade PRs - #79058

Merged
pelikhan merged 3 commits into
mainfrom
pelikhan/update-release-prs
Nov 18, 2026
Merged

pelikhan merged 3 commits into
mainfrom
pelikhan/update-release-prs

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Include the running gh-aw version in PR titles for local, target-repository, and organization updates and upgrades, while preserving rollout discovery for legacy and versioned titles.
  • Inline the matching release's curated highlights as fenced, explicitly untrusted reference data, excluding workflow attribution and the full changelog, and retain the release link.
  • Skip release lookups for development builds. Share one lookup across rollout worker processes, including failed and empty results. Lookup failures warn without blocking PR creation.
  • Omit optional highlights when the complete description, including custom messages, rollout markers, and footer, would exceed GitHub's body limit.

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: discoverRolloutPRs exceeds the function-length limit, and parseOrgRolloutResult has newline-splitting and string-to-JSON-copy diagnostics. These unrelated functions were left unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 18, 2026 15:05
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 15:05
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #79058 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

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.

Generated by PR Specification Reviewer for #79058 · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

Comment thread pkg/cli/update_pr_release.go Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 thread pkg/cli/update_command.go Resolved
Comment thread pkg/cli/upgrade_org.go Resolved
Comment thread pkg/cli/update_command.go Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-7adff70c-7822-4aad-8dfe-ebb1c8863502","parents":[],"payload":{"id":"ldg-4b567e24-884e-4e10-89de-42646f3c3435","operation":"append","value":{"finding_count":0,"head_sha":"c4d8d3351ac299ec8e2ec77859617f10bdd81453","outcome":"aligned"}},"sha":"sha256:36ec5e03408d51f2c9c7106162b365fbb1e13768d585f3b52139b900cb25b3ff","timestamp":"2026-11-18T15:13:17.586Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-6f31f41a-b771-4363-93db-844175152e09","parents":[],"payload":{"id":"ldg-a05d532b-4e43-436e-959f-5d20fe038528","operation":"append","value":{"finding_count":3,"head_sha":"c4d8d3351ac299ec8e2ec77859617f10bdd81453","outcome":"findings"}},"sha":"sha256:4483fcd0e3e0e5f2b54809699a15b9dedc3796b1c1e4ba49eeca9652686df32c","timestamp":"2026-11-18T15:14:25.341Z","type":"ledger_append","version":1}
History

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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)

Comment thread pkg/cli/update_pr_release.go Resolved
@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate — ADR Required

This PR makes significant changes to core business logic (>100 new lines) but does not have a linked Architecture Decision Record (ADR).

📄 Draft ADR committed: docs/adr/79058-inline-release-highlights-in-update-and-upgrade-prs.md. Review and complete it before merging.

🔒 This PR cannot merge until an ADR is linked in the PR body.

⚠️ Review finding to resolve with the ADR

Rollout discovery matches existing PRs by exact title when the body marker is missing (isRolloutPR in pkg/cli/org_rollout_discovery.go, lines 31 and 33). This change adds the gh-aw version to those titles. The single-repository update and upgrade paths do not add the marker, so their PRs will no longer be recognized. The draft ADR lists this as an open consequence.

📋 What to do next
  1. Review the draft ADR committed to your branch. It was generated from the PR diff.

  2. Complete the missing sections. Add context the gate could not infer, refine the rationale, and list alternatives you actually considered.

  3. Resolve the title-matching finding above, or record the trade-off in the ADR.

  4. Reference the ADR in this PR body by adding a line such as:

    ADR: ADR-79058: Inline gh-aw Release Highlights and Version in Update and Upgrade PRs (link unavailable: invalid HTTPS URL)

Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision.

📋 Michael Nygard ADR Format Reference

An ADR must contain these four sections to be considered complete: Context, Decision, Alternatives Considered, and Consequences. ADRs live in docs/adr/ and are named by PR number.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 in isRolloutPR, so new rollout PRs may not be detected when the body marker is missing.
  • Silent failure: an H4 #### Release Highlights heading passes the loop check but is unsupported by ExtractMarkdownSection, 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.md matches 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

Comment thread pkg/cli/update_pr_release.go Resolved
Comment thread pkg/cli/update_pr_release.go Resolved
Comment thread pkg/cli/update_pr_release_test.go Resolved
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>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan
pelikhan merged commit 9ab266d into main Nov 18, 2026
107 checks passed
@pelikhan
pelikhan deleted the pelikhan/update-release-prs branch November 18, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants