Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant-addon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If this add-on saves you time, you can [buy me a coffee](https://buymeacoffee.co

- Internal: the 1.34.7 changelog heading is restored so release notes stop at the right version.


## [1.34.8] - 2026-09-11

### Fixed

Expand Down
7 changes: 6 additions & 1 deletion tests/extractChangelog.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ describe('extractChangelogSection', () => {
const current = require('../package.json').version;
const headings = [...markdown.matchAll(/^## \[(\d+\.\d+\.\d+)\]/gm)].map((m) => m[1]);
expect(headings[0]).toBe(current);
expect(headings[1]).toBeDefined();
const parts = current.split('.').map(Number);
if (parts[2] > 0) {
expect(headings[1]).toBe(`${parts[0]}.${parts[1]}.${parts[2] - 1}`);
} else {
expect(headings[1]).toBeDefined();
}
const section = extractChangelogSection(markdown, current);
expect(section).toContain(`## [${current}]`);
expect(section).not.toContain(`## [${headings[1]}]`);
Expand Down