Skip to content

fix: correct release note generation for merged PRs#2167

Merged
Yeachan-Heo merged 1 commit intodevfrom
fix/release-generation-correctness
Apr 4, 2026
Merged

fix: correct release note generation for merged PRs#2167
Yeachan-Heo merged 1 commit intodevfrom
fix/release-generation-correctness

Conversation

@Yeachan-Heo
Copy link
Copy Markdown
Owner

Summary

  • build release notes from a deduped real PR set instead of mixing raw commits with merge-subject heuristics
  • derive contributor mentions from GitHub PR/compare metadata, with a narrow git fallback when metadata is unavailable
  • stop layering generate_release_notes on top of the custom body_path release body

Verification

  • npm test -- --run src/__tests__/release-generation.test.ts
  • npx eslint scripts/release.ts src/lib/release-generation.ts src/__tests__/release-generation.test.ts
  • npx tsc --noEmit
  • npx tsx scripts/release.ts 4.10.2 --dry-run
  • replayed v4.10.2 compare/PR metadata through src/lib/release-generation.ts to confirm 10 user-facing PRs and contributors blue-int, DdangJin, EthanJStark, tjsingleton, Yeachan-Heo

Notes

  • scope stays tightly on release generation correctness
  • not yet exercised against a live tag-triggered GitHub Actions release

The release generator mixed raw conventional commits for changelog content
with merge subjects for PR counts and contributor mentions, which made
v4.10.2 undercount PRs and collapse contributors to the release-branch
owner. This change extracts a deduped PR set, prefers GitHub PR/compare
metadata for titles/authors/contributors, keeps a narrow git fallback,
and makes the workflow publish only the custom release body.

Constraint: Must keep the fix tightly scoped to release generation correctness
Constraint: Release note generation must remain dependency-free
Rejected: Keep parsing merge-subject branch owners | cannot recover actual PR authors on maintainer-owned release branches
Rejected: Keep body_path plus generate_release_notes | duplicates and misaligns release content
Confidence: high
Scope-risk: narrow
Directive: If a custom release body is provided, do not re-enable GitHub auto-notes without reconciling the two sources
Tested: npm test -- --run src/__tests__/release-generation.test.ts
Tested: npx eslint scripts/release.ts src/lib/release-generation.ts src/__tests__/release-generation.test.ts
Tested: npx tsc --noEmit
Tested: npx tsx scripts/release.ts 4.10.2 --dry-run
Tested: gh compare/PR metadata replay for v4.10.1...v4.10.2 via src/lib/release-generation.ts
Not-tested: Full GitHub Actions release workflow on a live tag
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions bot added the size/L label Apr 4, 2026
@Yeachan-Heo
Copy link
Copy Markdown
Owner Author

OMX review completed. Verified the fix stays tightly scoped to release generation correctness: PR-backed note assembly, contributor derivation from real metadata, release-PR filtering, and workflow de-duplication of custom notes vs GitHub auto-notes. CI is green. Merge-ready.


[repo owner's gaebal-gajae (clawdbot) 🦞]

1 similar comment
@Yeachan-Heo
Copy link
Copy Markdown
Owner Author

OMX review completed. Verified the fix stays tightly scoped to release generation correctness: PR-backed note assembly, contributor derivation from real metadata, release-PR filtering, and workflow de-duplication of custom notes vs GitHub auto-notes. CI is green. Merge-ready.


[repo owner's gaebal-gajae (clawdbot) 🦞]

@Yeachan-Heo Yeachan-Heo merged commit 0045f29 into dev Apr 4, 2026
8 checks passed
@Yeachan-Heo
Copy link
Copy Markdown
Owner Author

OMX review completed. Verified the fix stays tightly scoped to release generation correctness: PR-backed note assembly, contributor derivation from real metadata, release-PR filtering, and workflow de-duplication of custom notes vs GitHub auto-notes. Full CI, including npm pack/install validation, is green. Merge-ready.


[repo owner's gaebal-gajae (clawdbot) 🦞]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant