-
-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
The CLI argument --prepend is supposed to result in git-cliff injecting the changelog for recent releases into an existing changelog.
- Remove the old header.
- Prepend the new releases' bodies.
- Prepend the new header.
Step 1 relied on the header being static between runs of git-cliff. It performed a simple string comparison between the existing CHANGELOG.md and the current value in the changelog.header variable. Since #697, changelog.header contains a template. Thus its value might change between runs and thus prevent detecting the old header.
Steps To Reproduce
- Set
changelog.headerto a template such that the output after rendering changes between releases. - Create a new release.
- Run git-cliff with the
--prependflag.
Expected behavior
git-cliff should properly detect and replace the old header.
Screenshots / Logs
No response
Software information
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed