Skip to content

Commit

Permalink
docs: remove author name from changelog (#187)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mbelak-dtml authored Oct 13, 2023
1 parent 694a4d7 commit ed839eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed839eb

Please sign in to comment.