[changelog]
header = """
# Changelog\n
"""
body = """
{% if version -%}\
## {{ version }} ({{ timestamp | date(format="%Y-%m-%d") }})
{% else -%}\
## [unreleased]
{% endif %}\
{% set grouped_commits = commits | group_by(attribute="group") %}\
{% set_global groups = [] %}\
{% for group, commits in grouped_commits -%}\
{% set_global groups = groups | concat(with=group) %}\
{% endfor -%}\
{% for group in groups | sort %}
### {{ group | split(pat=" ") | slice(start=1) | join(sep=" ") | upper_first }}
{% for commit in grouped_commits[group] -%}
{% for line in commit.message | split(pat="\\n") -%}\
{% if loop.first %}
- {{ line | upper_first }} [{{ commit.author.name }}]{% else %} {{ line | trim }} {% endif %}
{% endfor -%}
{% endfor -%}
{% endfor %}\n
"""
trim = false
footer = """
<!-- generated by git-cliff -->
"""
postprocessors = [
{ pattern = "- ([Nn]ew|[Ff]ix|[Cc]hg):\\s*(.*)", replace = "- $2" },
]
[git]
conventional_commits = false
filter_unconventional = false
split_commits = false
commit_preprocessors = [
]
commit_parsers = [
{ body = "!skip_changelog", skip = true },
{ message = "^[Nn]ew:\\s*(.*)", group = "01. New" },
{ message = "^[Ff]ix:\\s*(.*)", group = "02. Fixes" },
{ message = "^[Cc]hg:\\s*(.*)", group = "03. Changes" },
{ field = "author.name", pattern = "(dependabot|renovate)\\[bot\\]", skip = true },
{ message = ".*", group = "10. Other" },
]
protect_breaking_commits = false
filter_commits = false
tag_pattern = "v[0-9].*"
topo_order = false
sort_commits = "oldest"