Bug
When the iobroker plugin rotates older versions from README.md ## Changelog into CHANGELOG_OLD.md, the footer line Older entries are in [CHANGELOG_OLD.md](CHANGELOG_OLD.md). gets carried along with the rotated entry. After one release the footer ends up in CHANGELOG_OLD.md between old version entries; the README has no footer at all.
Reproduction
- Set up an adapter with
## Changelog containing >7 entries, last line is the footer link.
- Run
npm run release patch.
- The plugin rotates the oldest entry into
CHANGELOG_OLD.md. Inspect both files.
Expected: footer line stays at the bottom of README ## Changelog.
Actual: footer line moves with the rotated entry into CHANGELOG_OLD.md, README has none.
Reproduced in
- iobroker.govee-smart v2.0.2
- iobroker.parcelapp v0.2.15
- iobroker.beszel v0.3.5
- iobroker.hassemu v1.2.0
Workaround
A `before_commit` hook script removes the stray footer from `CHANGELOG_OLD.md` and restores it at the bottom of README `## Changelog`. A reasonable patch in the plugin would be to detect the `Older entries are in [CHANGELOG_OLD.md]...` pattern as a non-rotatable footer and leave it in place when rotating.
Bug
When the iobroker plugin rotates older versions from
README.md ## ChangelogintoCHANGELOG_OLD.md, the footer lineOlder entries are in [CHANGELOG_OLD.md](CHANGELOG_OLD.md).gets carried along with the rotated entry. After one release the footer ends up inCHANGELOG_OLD.mdbetween old version entries; the README has no footer at all.Reproduction
## Changelogcontaining >7 entries, last line is the footer link.npm run release patch.CHANGELOG_OLD.md. Inspect both files.Expected: footer line stays at the bottom of README
## Changelog.Actual: footer line moves with the rotated entry into
CHANGELOG_OLD.md, README has none.Reproduced in
Workaround
A `before_commit` hook script removes the stray footer from `CHANGELOG_OLD.md` and restores it at the bottom of README `## Changelog`. A reasonable patch in the plugin would be to detect the `Older entries are in [CHANGELOG_OLD.md]...` pattern as a non-rotatable footer and leave it in place when rotating.