Skip to content

ci(release): use GitHub-native release notes for the changelog - #128

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/release-notes-native-changelog
Jun 25, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/release-notes-native-changelog

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Fixes #127.

Root cause

The create-release job checked out without tags (no fetch-depth: 0), so git describe --tags returned empty → the previous-tag output was blank → the notes github-script always hit its else branch and wrote "Initial release." on every release (v0.5.2 → v0.7.2).

Fix

Switch to GitHub's native release notes (what the user wants — the vPrev...vNew compare link + PR list):

  • Remove the Get previous tag step and the custom compare/categorize logic (~45 lines).
  • Keep the script's Desktop Installers + Python Package sections as the release body.
  • Set generate_release_notes: true on softprops/action-gh-release — GitHub appends ## What's Changed + **Full Changelog**: vPrev...vNew server-side, so no local tag history is needed (sidesteps the bug entirely).

Retroactive cleanup (already done)

The 8 affected release bodies were corrected via the releases/generate-notes API — each now shows the proper changelog + compare link, with the Installers/PyPI sections preserved. No release says "Initial release" anymore.

YAML validated; behavior (SBOM/PyPI/installers) unchanged.

The create-release job checked out without tags (no fetch-depth: 0), so
`git describe --tags` returned empty, the previous-tag output was blank, and
the notes script always took the `else` branch — writing "Initial release."
on every release (v0.5.2 through v0.7.2).

Replace the hand-rolled commit-categorization with GitHub's native release
notes: drop the "Get previous tag" step and the compare/categorize logic, keep
the script's Desktop Installers + Python Package sections as the body, and set
`generate_release_notes: true` on softprops/action-gh-release. GitHub then
appends "## What's Changed" + the "Full Changelog: vPrev...vNew" compare link
server-side — no local tag history needed, and ~45 fewer lines of script.

Existing release bodies (the 8 affected) were corrected retroactively via the
generate-notes API. Refs #127.
@CameronBrooks11 CameronBrooks11 added the ci Pull requests that update CI/CD workflows label Jun 25, 2026
@CameronBrooks11
CameronBrooks11 merged commit 9cab444 into main Jun 25, 2026
15 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/release-notes-native-changelog branch June 25, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pull requests that update CI/CD workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release workflow writes "Initial release" instead of the changelog/compare link

1 participant