From e5f55c1f1af84d3f9053bf9b36c3662dab706882 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:30:02 -0500 Subject: [PATCH] fix: adjust jinja check for changelog template --- templates/CHANGELOG.md.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CHANGELOG.md.j2 b/templates/CHANGELOG.md.j2 index 58751eb9..2d49de42 100644 --- a/templates/CHANGELOG.md.j2 +++ b/templates/CHANGELOG.md.j2 @@ -9,7 +9,7 @@ ### {{ category | capitalize }} {# List actual changes in the category #} {%- for commit in commits %} -{% if commit is not none and commit.descriptions is not none %} +{% if commit is not none and commit.descriptions is defined %} - {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) {% endif %} {%- endfor %}{# for commit #}