46 lines
1.3 KiB
TOML
46 lines
1.3 KiB
TOML
# git-cliff configuration — generates CHANGELOG.md from Conventional Commits.
|
|
# Run via `make changelog`. See https://git-cliff.org.
|
|
|
|
[changelog]
|
|
header = """
|
|
# Changelog
|
|
|
|
All notable changes to this project. Generated from Conventional Commits by git-cliff.\n
|
|
"""
|
|
body = """
|
|
{% if version %}\
|
|
## {{ version }} — {{ 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 %}\
|
|
- {{ commit.message | upper_first }}{% if commit.breaking %} **[BREAKING]**{% endif %}
|
|
{% endfor %}\
|
|
{% endfor %}\n
|
|
"""
|
|
trim = true
|
|
|
|
[git]
|
|
conventional_commits = true
|
|
filter_unconventional = true
|
|
split_commits = false
|
|
protect_breaking_commits = true
|
|
tag_pattern = "v[0-9]*"
|
|
# CalVer tags: YYYY.MM.PATCH
|
|
filter_commits = false
|
|
commit_parsers = [
|
|
{ message = "^feat", group = "Features" },
|
|
{ message = "^fix", group = "Bug Fixes" },
|
|
{ message = "^perf", group = "Performance" },
|
|
{ message = "^refactor", group = "Refactor" },
|
|
{ message = "^docs", group = "Documentation" },
|
|
{ message = "^test", group = "Tests" },
|
|
{ message = "^ci", group = "CI" },
|
|
{ message = "^build", group = "Build" },
|
|
{ message = "^arch", group = "Architecture" },
|
|
{ message = "^chore", group = "Chores" },
|
|
{ message = ".*", group = "Other" },
|
|
]
|