clog-tool / clog-cli

Generate beautiful changelogs from your Git commit history
MIT License
851 stars 43 forks source link

clog-cli duplicates log entries with every execution #111

Closed tsal closed 5 years ago

tsal commented 5 years ago

I couldn't find a previous issue with this, but here goes:

I'm working on build automation in travis-ci, and I'm attempting to use clog to generate the CHANGELOG updates; however, every execution is re-playing the previous changes, so we end up with duplicate entries for every patch / minor / major release, and they're carried forward to each release.

I tried using the from-latest-tag option, but that just gets me an empty changelog update with each release - no matter how many commits have happened since the last tag.

I'm tagging as part of the build, but I'm running the changelog updates before the tag step, so I'd think I'd get the correct commit info from that?

tsal commented 5 years ago

Figured out my issue - another travis stage was tagging because a conditional was being ignored.

tsal commented 5 years ago

For posterity - if you're getting duplicates like I was, make sure you have from-latest-tag set to true and that you're doing any tagging after your updates to your changelog have been committed.