Repository navigation
ci(release): use GitHub-native release notes for the changelog - #128
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #127.
Root cause
The
create-releasejob checked out without tags (nofetch-depth: 0), sogit describe --tagsreturned empty → the previous-tag output was blank → the notes github-script always hit itselsebranch 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...vNewcompare link + PR list):Get previous tagstep and the custom compare/categorize logic (~45 lines).body.generate_release_notes: trueonsoftprops/action-gh-release— GitHub appends## What's Changed+**Full Changelog**: vPrev...vNewserver-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-notesAPI — 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.