Skip to content

Commit af8e198

Browse files
committed
chore: fix git-cliff template and test locally
1 parent 163218d commit af8e198

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.gitcliff.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ No notable changes.
2626
{% if commits | length == 0 %}
2727
- No new contributors for this release.
2828
{% else %}
29-
{% for author_name, author_commits in commits | group_by(attribute="author.name") %}
30-
{% set author_email = (author_commits | first).author.email %}
31-
{% set display_name = author_name | default(value=author_email) %}
29+
{% for author_name, author_commits in commits | group_by(attribute="author.email") %}
30+
{% set first_commit = author_commits | first %}
31+
{% set display_name = first_commit.author.name | default(value=author_name | default(value="Unknown")) %}
3232
- {{ display_name }} ({{ author_commits | length }} commit{% if author_commits | length > 1 %}s{% endif %})
3333
{% endfor %}
3434
{% endif %}
35+
{% endif %}
3536
"""
3637

3738
group_by = ["type"]

0 commit comments

Comments
 (0)