46 lines
1.3 KiB
TOML
46 lines
1.3 KiB
TOML
# git-cliff configuration
|
|
# https://git-cliff.org/docs/configuration
|
|
|
|
[changelog]
|
|
header = """# Changelog
|
|
|
|
All notable changes to Kandev.\n
|
|
"""
|
|
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 | striptags | trim | upper_first }}
|
|
{% for commit in commits %}
|
|
- {{ commit.message }}\
|
|
{% endfor %}
|
|
{% endfor %}\n
|
|
"""
|
|
trim = true
|
|
footer = ""
|
|
|
|
[git]
|
|
conventional_commits = true
|
|
filter_unconventional = false
|
|
split_commits = false
|
|
commit_preprocessors = [
|
|
# Convert (#NNN) references into clickable GitHub PR links
|
|
{ pattern = '\(#(\d+)\)', replace = "([#${1}](https://github.com/kdlbs/kandev/pull/${1}))" },
|
|
]
|
|
commit_parsers = [
|
|
{ message = "^feat", group = "<!-- 0 -->Features" },
|
|
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
|
|
{ message = "^perf", group = "<!-- 2 -->Performance" },
|
|
{ message = "^refactor", group = "<!-- 3 -->Refactoring" },
|
|
{ message = "^docs", group = "<!-- 4 -->Documentation" },
|
|
{ message = "^release", skip = true },
|
|
{ message = "^chore", skip = true },
|
|
{ message = "^ci", skip = true },
|
|
{ message = "^test", skip = true },
|
|
]
|
|
tag_pattern = "v[0-9]*"
|
|
sort_commits = "newest"
|