From 649a2c3bfdb6a4f094cd33c6b066957ce53a6801 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:19:37 -0500 Subject: [PATCH] fix: handle empty messages in changelog --- templates/CHANGELOG.md.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/CHANGELOG.md.j2 b/templates/CHANGELOG.md.j2 index c1c91be5..077281ab 100644 --- a/templates/CHANGELOG.md.j2 +++ b/templates/CHANGELOG.md.j2 @@ -9,7 +9,9 @@ ### {{ category | capitalize }} {# List actual changes in the category #} {%- for commit in commits %} +{% if commit is not none && commit.descriptions is not none %} - {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) +{% endif %} {%- endfor %}{# for commit #} {%- endfor %}{# for category, commits #}