Skip to content

fix: generate release notes when publishing a tagged release - #541

Open
frarredondo wants to merge 1 commit into
dcouple:mainfrom
frarredondo:release-notes-on-publish
Open

fix: generate release notes when publishing a tagged release#541
frarredondo wants to merge 1 commit into
dcouple:mainfrom
frarredondo:release-notes-on-publish

Conversation

@frarredondo

Copy link
Copy Markdown
Contributor

Summary

Fixes #540. Every published release has an empty body, so nobody can tell what changed without diffing tags by hand. Traced it down: electron-builder creates the release with no notes, and the publish-release job just does gh release edit --draft=false --latest, never touching notes either. Nothing in the pipeline ever writes a body.

Swapped that gh release edit call for a direct API PATCH that turns on generate_release_notes. That's the same thing GitHub's own "Generate release notes" button does, pulls a "What's Changed" list from merged PRs since the last tag. No changelog file to maintain, no extra step.

Also pinned name explicitly (${tag#v}) so the release title doesn't shift when GitHub fills in the rest.

Heads up: this only helps going forward. I don't have push access to this repo so I can't backfill notes on the releases already out there (v2.4.82 and earlier).

Test plan

  • YAML parses clean
  • Confirmed empty release bodies on the last several tags via gh release view --json body before writing the fix
  • Can't dry-run the actual publish step locally since it needs push access and a real tag push, this is a straight swap of one gh call for an API PATCH doing a superset of what it did before (draft=false, make_latest) plus generate_release_notes

The publish-release job only marked releases non-draft; it never set a
body, so every stable release shipped with empty notes. Use the
releases API's generate_release_notes option so each publish gets an
auto-generated "What's Changed" summary from merged PRs since the
previous release.
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.

Published releases ship with no release notes (publish-release job never sets a body)

1 participant