mirror of
https://github.com/orhun/git-cliff.git
synced 2024-12-15 16:21:44 +03:00
19 lines
574 B
TOML
19 lines
574 B
TOML
# configuration file for git-cliff (0.1.0)
|
|
|
|
[changelog]
|
|
# template for the changelog body
|
|
# https://tera.netlify.app/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
|
|
"""
|