Open cweber-dbs opened 9 months ago
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️
I just ran into this too. I've had a long running branch for re-licensing a project and am cutting a release with that being the only change that should make it into the changelog. Running git cliff -o CHANGELOG.md -t vX.Y.Z
regenerated the changelog but, the breaking change was just added as an entry to a release 4 releases ago and no heading for X.Y.Z was even added! I might have missed if this was happening with just a few commits coming in from old branch points, but this one is pretty egregious.
If you want re replicate the results for testing you can clone decasify and then git checkout v0.6.0^
to get the commit before the release I had to hand-generate notes for, then git cliff -o CHANGELOG.md -t v0.6.0
to see where Git Cliff wants to put the notes.
Using git log v0.5.8..v0.6.0
shows the correct topological set of commits that entered the branch during that release cycle.
@alerque maybe it is about #804?
Describe the bug
The assignment of the commits to a tag is based on the creation time of the commits and not based on the topological order of the commits in different branches.
The created changelog adds commit 'f1' to tag '1.0.0'
Expected behavior
Commits 'fix: m1' and 'fix: m2' should be assigned to Tag '1.0.0. Commits 'fix: f1' and 'fix: f2' should be assigned to Tag '1.1.0.
Screenshots / Logs Git Graph of Commits:
Created Changelog with wrong assignment:
Software information
Additional context
cliff.toml: