From ed839eb0c4908a8730262eacca958689544fd99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Bel=C3=A1k?= Date: Fri, 13 Oct 2023 16:01:32 +0200 Subject: [PATCH] docs: remove author name from changelog (#187) The author name does not bring much value in the changelog. A GitHub handle could be more useful, but git cliff does not support it. --- cliff.toml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cliff.toml b/cliff.toml index e67fe18..6f47390 100644 --- a/cliff.toml +++ b/cliff.toml @@ -30,20 +30,15 @@ body = """ {% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %} - {% set author_surname = commit.author.name | split(pat=" ") | last | truncate(length=1, end="") -%} - {% set author = author_name ~ " " ~ author_surname ~ "." -%} - *({{commit.scope}})*{% if commit.breaking %} [**BREAKING CHANGE**]{% endif %} \ - {{ commit.message | upper_first }} by {{ author }} + {{ commit.message | upper_first }} {%- endfor -%} {% raw %}\n{% endraw -%}\ {%- for commit in commits -%} - {% set author_name = commit.author.name | split(pat=" ") | first -%} - {% set author_surname = commit.author.name | split(pat=" ") | last | truncate(length=1, end="") -%} - {% set author = author_name ~ " " ~ author_surname ~ "." -%} {%- if commit.scope -%} {% else -%} - {% if commit.breaking %} [**BREAKING CHANGE**]{% endif %} \ - {{ commit.message | upper_first }} by {{ author }} + {{ commit.message | upper_first }} {% endif -%} {% endfor -%} {% endfor %}\n