1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 13:23:40 +03:00
git-cliff/examples/minimal.toml
Orhun Parmaksız 08e761c20f
chore(examples): improve example templates (#835)
* chore(examples): improve example templates

* chore(typos): configure typos
2024-09-01 11:18:35 +03:00

20 lines
607 B
TOML

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