Skip to content

fix: insert auto-release CHANGELOG entries above the first version heading - #13

Merged
TheCryptoDonkey merged 1 commit into
mainfrom
fix/changelog-insert-above-versions
Oct 18, 2026
Merged

TheCryptoDonkey merged 1 commit into
mainfrom
fix/changelog-insert-above-versions

Conversation

@TheCryptoDonkey

Copy link
Copy Markdown
Member

auto-release.yml put each new CHANGELOG section after the first line starting with # , on the assumption it was a # Changelog title. In conventional-changelog files a major release heading (# [2.0.0](...)) is also an H1, so new entries landed inside that release's notes. Seen in range-proof (2.0.2 to 2.0.5 under 2.0.0), ring-sig (3.0.4 under 3.0.0) and nostr-attestations (3.0.1 under 3.0.0).

  • The section now goes above the first version heading, using the same rule as changelog-extract.sh (1-3 #s and a dotted x.y.z). With no version heading it goes after the first H1 title, or at the top when there is none.
  • A last line without a trailing newline is no longer dropped.
  • test/auto-release-changelog.bats runs the step's own run: block from the workflow file against eight changelog shapes. Four of them fail on the old step.

Consumers on @v0 pick this up when it releases.

…ading

The step put each new section after the first line starting with '# ', on the assumption that it was a '# Changelog' title. In conventional-changelog files a major release heading ('# [2.0.0](...)') is also an H1, so new entries landed inside that release's notes (range-proof 2.0.2 to 2.0.5, ring-sig 3.0.4, nostr-attestations 3.0.1). Version headings now use the changelog-extract rule (1-3 #s and a dotted x.y.z). A last line without a trailing newline is no longer dropped.
TheCryptoDonkey added a commit to forgesworn/range-proof that referenced this pull request Oct 18, 2026
anvil's auto-release inserted each new section after the first '# ' line, which here was a major release heading, so the entries landed inside that release's notes. Lines are moved only; nothing is added or removed. forgesworn/anvil#13 fixes the insertion.

Co-authored-by: TheCryptoDonkey <TheCryptoDonkey@users.noreply.github.com>
TheCryptoDonkey added a commit to forgesworn/ring-sig that referenced this pull request Oct 18, 2026
anvil's auto-release inserted each new section after the first '# ' line, which here was a major release heading, so the entries landed inside that release's notes. Lines are moved only; nothing is added or removed. forgesworn/anvil#13 fixes the insertion.

Co-authored-by: TheCryptoDonkey <TheCryptoDonkey@users.noreply.github.com>
TheCryptoDonkey added a commit to forgesworn/nostr-attestations that referenced this pull request Oct 18, 2026
anvil's auto-release inserted each new section after the first '# ' line, which here was a major release heading, so the entries landed inside that release's notes. Lines are moved only; nothing is added or removed. forgesworn/anvil#13 fixes the insertion.

Co-authored-by: TheCryptoDonkey <TheCryptoDonkey@users.noreply.github.com>
@TheCryptoDonkey
TheCryptoDonkey merged commit 3624172 into main Oct 18, 2026
3 checks passed
@TheCryptoDonkey
TheCryptoDonkey deleted the fix/changelog-insert-above-versions branch October 18, 2026 20:34
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