Skip to content

fix(release): include changelog in tagged commits - #139

Merged
GSTJ merged 1 commit into
mainfrom
fix/release-changelog-before-tag
Aug 4, 2026
Merged

fix(release): include changelog in tagged commits#139
GSTJ merged 1 commit into
mainfrom
fix/release-changelog-before-tag

Conversation

@GSTJ

@GSTJ GSTJ commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Release tags now wait for their generated changelog entry to merge. The tagged commit and GitHub release body contain the same notes.

Details

  • Adds an --upcoming mode that generates an entry before its tag exists.
  • Makes the release script a two-pass flow: prepare the changelog on current main, merge it through a PR, and rerun the script to create the tag.
  • Excludes changelog preparation commits from generated notes, including the existing post-tag changelog commits.
  • Refuses to create a tag from a branch other than current main, a dirty checkout, or a checkout behind origin/main.

Testing steps

  1. Run:
pnpm test:release
  1. Confirm the command exits successfully and the terminal ends with OK.

@GSTJ

GSTJ commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Local proof from 3be8de1: the integration suite covers the pre-tag stop, the post-merge tag, matching changelog output, and breaking-change notes.

Release flow integration proof

@GSTJ
GSTJ merged commit ebb33d3 into main Aug 4, 2026
7 checks passed
@GSTJ
GSTJ deleted the fix/release-changelog-before-tag branch August 4, 2026 23:33
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.

1 participant