From 5376dcdc06456aff8df30e03231410126986cce4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:17:24 -0500 Subject: [PATCH 1/3] fix: changelog generation --- templates/CHANGELOG.md.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/CHANGELOG.md.j2 b/templates/CHANGELOG.md.j2 index 2ae65cac..c1c91be5 100644 --- a/templates/CHANGELOG.md.j2 +++ b/templates/CHANGELOG.md.j2 @@ -8,6 +8,9 @@ {# Category title: Breaking, Fix, Documentation #} ### {{ category | capitalize }} {# List actual changes in the category #} +{%- for commit in commits %} +- {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) +{%- endfor %}{# for commit #} {%- endfor %}{# for category, commits #} From 649a2c3bfdb6a4f094cd33c6b066957ce53a6801 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:19:37 -0500 Subject: [PATCH 2/3] 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 #} From 8bfce8b97b365e51c0ede3890ff8e77603987bb4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:20:21 -0500 Subject: [PATCH 3/3] fix: syntax --- 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 077281ab..58751eb9 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 && commit.descriptions is not none %} +{% if commit is not none and commit.descriptions is not none %} - {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) {% endif %} {%- endfor %}{# for commit #}