Debian Codegraph @

templates/CHANGELOG.md.j2

raw
1 # Changelog
2
3 {%- for version, release in context.history.released.items() %}
4
5 ## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
6
7 {%- for category, commits in release["elements"].items() %}
8 {%- set parsed_commits = commits | selectattr("descriptions") | list %}
9 {%- if parsed_commits %}
10 {# Category title: Breaking, Fix, Documentation #}
11 ### {{ category | capitalize }}
12 {# List actual changes in the category #}
13 {%- for commit in parsed_commits %}
14 - {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
15 {%- endfor %}{# for commit #}
16
17 {%- endif %}{# if parsed_commits #}
18 {%- endfor %}{# for category, commits #}
19
20 {%- endfor %}{# for version, release #}