mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-06 07:11:09 +00:00
Registration sent the GitHub release body to the updater, so the notes every install sees were written at publish time — after review, outside the repo, with nothing checking they existed or matched what shipped. CHANGELOG.md becomes the source. It is written and reviewed alongside the change itself, so what installs are offered cannot drift from what was merged, and the release body can simply point at it. A release with no section for its tag now fails the job rather than registering an empty changelog — the same reasoning as the token check added in #708. A manual dispatch falls back to the release body instead, since re-registering a release older than this file is legitimate. Section boundaries are matched on version headings rather than any "## ", because release notes routinely contain their own second-level headings: 5 of the 12 historical 2.x releases do. Verified by round-tripping 2.4.2 (2504 bytes, byte-identical) and 2.4.0 (5 inner headings, no content lost), and that "2.4" does not match the "2.4.2" section. Backfilled with the 2.4.x line; older releases stay on GitHub.