1
1
mirror of https://github.com/orhun/git-cliff.git synced 2025-01-05 22:33:09 +03:00
git-cliff/examples/limitedcommits.toml

22 lines
599 B
TOML
Raw Normal View History

# 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
"""
[git]
limit_commits = 3