Skip to content

Commit 2a5b998

Browse files
authored
fix: adjust changelog message template to handle empty descriptions (#32)
1 parent fe731c2 commit 2a5b998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/CHANGELOG.md.j2

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
### {{ category | capitalize }}
1010
{# List actual changes in the category #}
1111
{%- for commit in commits %}
12+
{% if commit is not none and commit.descriptions is defined %}
1213
- {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
14+
{% endif %}
1315
{%- endfor %}{# for commit #}
1416

1517
{%- endfor %}{# for category, commits #}

0 commit comments

Comments
 (0)