Skip to content

fix(ci): scope RC changelog to previous RC instead of last stable release#93

Merged
pasrom merged 1 commit intomainfrom
fix/rc-changelog-scope
Apr 8, 2026
Merged

fix(ci): scope RC changelog to previous RC instead of last stable release#93
pasrom merged 1 commit intomainfrom
fix/rc-changelog-scope

Conversation

@pasrom
Copy link
Copy Markdown
Owner

@pasrom pasrom commented Apr 8, 2026

Summary

  • RC tags (e.g. v1.2.0-rc.3) now show only changes since the previous RC/tag, not everything since the last stable release
  • Stable releases keep the full changelog since the last stable release
  • Add fetch-tags: true to checkout (shallow clone needs all tags for git tag listing)
  • Extract prerelease detection into reusable version step output
  • Use jq // empty to avoid literal "null" when no prior release exists

Test plan

  • Push an RC tag (e.g. v1.1.0-rc.1) and verify the changelog only shows changes since the previous tag
  • Push a stable tag and verify the changelog shows all changes since the last stable release
  • Verify first-ever RC gracefully falls back to full changelog (empty previous tag)

…ease

Previously, RC tags (e.g. v1.2.0-rc.3) showed all changes since the
last stable release. Now RCs only show changes since the immediately
preceding tag (RC or stable), while stable releases keep the full
changelog since the last stable release.

- Add fetch-tags: true to checkout (shallow clone needs all tags)
- For RC tags: use git tag --sort=-v:refname to find preceding tag
- For stable tags: keep existing gh release list --exclude-pre-releases
- Extract prerelease detection into version step output to deduplicate
- Use jq // empty to avoid literal "null" when no prior release exists
@github-actions github-actions bot added the bug Something isn't working label Apr 8, 2026
@pasrom pasrom merged commit 98d145f into main Apr 8, 2026
7 checks passed
@pasrom pasrom deleted the fix/rc-changelog-scope branch April 8, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant