From 02b1023bac416dce1badbde846c9eec3b723125b Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Wed, 8 Jan 2025 22:10:28 +0900 Subject: [PATCH] docs: remove duplicate commit messages from the changelog Also exclude merge commits (if any) from the generated changelog. Signed-off-by: Sacha Telgenhof --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index f7cee6dd0..3e1ed6b45 100644 --- a/cliff.toml +++ b/cliff.toml @@ -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 }}\