Skip to content

Commit 2282bfa

Browse files
committed
chore: ignore bot authors in changelog
1 parent 353ed76 commit 2282bfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitcliff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ No notable changes.
2929
{% for author_name, author_commits in commits | group_by(attribute="author.email") %}
3030
{% set first_commit = author_commits | first %}
3131
{% set display_name = first_commit.author.name | default(value=author_name | default(value="Unknown")) %}
32+
{% set author_email = author_name | default(value="") | lower %}
33+
{% set author_label = display_name | lower %}
34+
{% if not (author_email | contains(pat="bot") or author_email | contains(pat="noreply") or author_label | contains(pat="bot")) %}
3235
- {{ display_name }} ({{ author_commits | length }} commit{% if author_commits | length > 1 %}s{% endif %})
36+
{% endif %}
3337
{% endfor %}
3438
{% endif %}
3539
{% endif %}

0 commit comments

Comments
 (0)