1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-01 21:34:15 +03:00
git-cliff/examples/minimal.toml

20 lines
607 B
TOML
Raw Normal View History

# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
2022-01-29 18:53:26 +03:00
[changelog]
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
2022-01-29 18:53:26 +03:00
body = """
{% if version %}\
## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}\
2022-01-29 18:53:26 +03:00
{% else %}\
## 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
"""