orhun / git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
https://git-cliff.org
Apache License 2.0
8.42k stars 174 forks source link

Multiple tags for a single commit #149

Open julienrbrt opened 1 year ago

julienrbrt commented 1 year ago

I'd like to display the correct tag in the generated changelog. Oftentimes, in our project, multiple projects are tagged on the same commit (monorepo, using --include-path). This leads when generating the changelog to have the wrong tag displayed in the changelog (when none specified) Or getting an error like WARN git_cliff > There is already a tag (math/v1.0.0-rc.0) for ea8c76eb65c884fb4e2619196953a1f0dfe3f28d when trying to generate a changelog for another project. Is there a solution for this?

Note, in this example I am using npx git-cliff@latest --include-path "log/**/*.go" --output log/CHANGELOG.md --tag v0.1.0 for generating a changelog.

orhun commented 1 month ago

711 is an attempt to fix this.