Skip to content

Commit

Permalink
docs: remove duplicate commit messages from the changelog
Browse files Browse the repository at this point in the history
Also exclude merge commits (if any) from the generated changelog.

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Jan 8, 2025
1 parent 0adb2e8 commit 02b1023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ body = """
## [Unreleased]
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
{% for group, commits in commits | unique(attribute="message") | filter(attribute="merge_commit", value=false) | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}({{ commit.scope | upper_first }}) {% endif%}{{ commit.message | split(pat="\n") | first | split(pat=": ") | last | trim | upper_first }}\
Expand Down

0 comments on commit 02b1023

Please sign in to comment.