Skip to content

Insert changelog headings instead of replacing them - #112

Merged
dougrathbone merged 1 commit into
masterfrom
dougrathbone/changelog-insert-heading-9cfb
Sep 11, 2026
Merged

dougrathbone merged 1 commit into
masterfrom
dougrathbone/changelog-insert-heading-9cfb

Conversation

@dougrathbone

Copy link
Copy Markdown
Owner

Summary

The published v1.34.9 GitHub Release body is trimmed to the 1.34.9 section only.

This PR adds insertChangelogVersion so the next bump writes a heading above the current top version instead of replacing it (how 1.34.7 and 1.34.8 notes were swallowed).

Usage: npm run changelog:insert -- 1.34.10 2026-09-12

Changes

  • Insert-only changelog heading helper (refuses duplicates)
  • Tests covering insert-above, duplicate, and invalid version/date

Test plan

  • npm test, lint, and typecheck pass
  • v1.34.9 source release notes rewritten from the changelog extract

Checklist

  • Version bumped in package.json and homeassistant-addon/config.yaml (if releasing)
  • CHANGELOG.md updated (if releasing)
  • No sensitive data or credentials included
Open in Web Open in Cursor 

A StrReplace of the previous ## heading swallowed 1.34.7 and 1.34.8
into the next GitHub Release. insertChangelogVersion writes the new
heading above the current top section and refuses duplicates.

Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
@dougrathbone
dougrathbone marked this pull request as ready for review September 11, 2026 23:00
@dougrathbone
dougrathbone merged commit fd1c3a5 into master Sep 11, 2026
25 checks passed
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.

2 participants