Skip to content

Commit 0f4e8c0

Browse files
ci: update changelog template (#154)
1 parent 8925729 commit 0f4e8c0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

templates/CHANGELOG.md.j2

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22
{% if context.history.unreleased | length > 0 %}
33
{# UNRELEASED #}
44
## Unreleased
5-
{% for type_, commits in context.history.unreleased | dictsort %}
5+
{% for type_, commits in context.history.unreleased | dictsort %}{% if type_ == "enh" %}
6+
### {{ "Enhancements" | capitalize }}
7+
{% else %}
68
### {{ type_ | capitalize }}
7-
{% for commit in commits %}{% if type_ != "unknown" %}
9+
{% endif %}{% for commit in commits %}{% if type_ != "unknown" %}
810
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
911
{% else %}
1012
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
1113
{% endif %}{% endfor %}{% endfor %}{% endif %}
1214
{% for version, release in context.history.released.items() %}
1315
{# RELEASED #}
1416
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
15-
{% for type_, commits in release["elements"] | dictsort %}
17+
{% for type_, commits in release["elements"] | dictsort %}{% if type_ == "enh" %}
18+
### {{ "Enhancements" | capitalize }}
19+
{% else %}
1620
### {{ type_ | capitalize }}
17-
{% for commit in commits %}{% if type_ != "unknown" %}
21+
{% endif %}{% for commit in commits %}{% if type_ != "unknown" %}
1822
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
1923
{% else %}
2024
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))

0 commit comments

Comments
 (0)