From 2b770e9a4a6ccfa352fd0fc2b30099ef07b59db8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Jun 2024 13:20:46 -0500 Subject: [PATCH] fix: changelog generation (#2) --- templates/CHANGELOG.md.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/CHANGELOG.md.j2 b/templates/CHANGELOG.md.j2 index 2ae65cac..58751eb9 100644 --- a/templates/CHANGELOG.md.j2 +++ b/templates/CHANGELOG.md.j2 @@ -8,6 +8,11 @@ {# Category title: Breaking, Fix, Documentation #} ### {{ category | capitalize }} {# List actual changes in the category #} +{%- for commit in commits %} +{% 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 #} {%- endfor %}{# for category, commits #}