orhun / git-cliff

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

merge identical commit messages #755

Closed RickSKy closed 1 month ago

RickSKy commented 1 month ago

Is there an existing issue or pull request for this?

Feature description

Sometimes multiple code submissions may be made to solve the same problem, resulting in the same content in the commit message. This can lead to duplicate entries in the automatically generated descriptions of git-cliff. Is it possible to merge identical commit messages?

Desired solution

merge identical commit messages

Alternatives considered

none

Additional context

none

welcome[bot] commented 1 month ago

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

orhun commented 1 month ago

You can use the unique filter of Tera as follows:

{% for commit in commits | unique(attribute="message") %}