2023-08-19 13:38:07 +03:00
|
|
|
# git-cliff ~ configuration file
|
|
|
|
# https://git-cliff.org/docs/configuration
|
2022-01-29 18:53:26 +03:00
|
|
|
|
|
|
|
[changelog]
|
|
|
|
# template for the changelog body
|
2023-09-08 16:22:14 +03:00
|
|
|
# https://keats.github.io/tera/docs/#introduction
|
2022-01-29 18:53:26 +03:00
|
|
|
body = """
|
|
|
|
{% if version %}\
|
2024-09-01 11:18:35 +03:00
|
|
|
## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}\
|
2022-01-29 18:53:26 +03:00
|
|
|
{% else %}\
|
2024-09-01 11:18:35 +03:00
|
|
|
## Unreleased\
|
2022-01-29 18:53:26 +03:00
|
|
|
{% endif %}\
|
|
|
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
|
|
### {{ group | upper_first }}
|
|
|
|
{% for commit in commits %}\
|
|
|
|
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}
|
|
|
|
{% endfor %}\
|
|
|
|
{% endfor %}\n
|
|
|
|
"""
|