Skip to content

Commit

Permalink
ci: update changelog template (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbertrand authored Feb 26, 2024
1 parent 8925729 commit 0f4e8c0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions templates/CHANGELOG.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
{% if context.history.unreleased | length > 0 %}
{# UNRELEASED #}
## Unreleased
{% for type_, commits in context.history.unreleased | dictsort %}
{% for type_, commits in context.history.unreleased | dictsort %}{% if type_ == "enh" %}
### {{ "Enhancements" | capitalize }}
{% else %}
### {{ type_ | capitalize }}
{% for commit in commits %}{% if type_ != "unknown" %}
{% endif %}{% for commit in commits %}{% if type_ != "unknown" %}
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% else %}
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% endif %}{% endfor %}{% endfor %}{% endif %}
{% for version, release in context.history.released.items() %}
{# RELEASED #}
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
{% for type_, commits in release["elements"] | dictsort %}
{% for type_, commits in release["elements"] | dictsort %}{% if type_ == "enh" %}
### {{ "Enhancements" | capitalize }}
{% else %}
### {{ type_ | capitalize }}
{% for commit in commits %}{% if type_ != "unknown" %}
{% endif %}{% for commit in commits %}{% if type_ != "unknown" %}
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% else %}
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
Expand Down

0 comments on commit 0f4e8c0

Please sign in to comment.