Skip to content

Commit

Permalink
chore: add changelog template (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Aug 5, 2024
1 parent f81392a commit ad62aa1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/CHANGELOG.md.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

{%- for version, release in context.history.released.items() %}

## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})

{%- for category, commits in release["elements"].items() %}
{# 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 defined %}
- {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% endif %}
{%- endfor %}{# for commit #}

{%- endfor %}{# for category, commits #}

{%- endfor %}{# for version, release #}

0 comments on commit ad62aa1

Please sign in to comment.