[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
body = """
{% if version %}\
{% if version | trim_start_matches(pat="v") == "Unreleased" %}\
## [Unreleased]
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim }}
{% for commit in commits
| filter(attribute="scope")
| unique(attribute="message") -%}
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}\
{{ commit.message | upper_first | trim }}\
{% if commit.breaking %} **[BREAKING]**{% endif %}
{% endfor -%}
{% for commit in commits -%}
{% if not commit.scope -%}
- {{ commit.message | upper_first | trim }}\
{% if commit.breaking %} **[BREAKING]**{% endif %}
{% endif -%}
{% endfor -%}
{% endfor %}
"""
trim = true
footer = ""
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\s*\(#\d+\)', replace = "" },
]
protect_breaking_commits = true
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Changed" },
{ message = "^improvement", group = "Changed" },
{ message = "^docs?", group = "Changed" },
{ body = ".*BREAKING[- ]CHANGE.*", group = "Breaking" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(deps", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(changelog\\)", skip = true },
{ message = "^ci", skip = true },
{ message = "^test", skip = true },
{ message = "^style", skip = true },
{ message = "^build", skip = true },
{ message = "^chore", group = "Changed" },
]
filter_commits = false
topo_order = false
sort_commits = "oldest"
tag_pattern = "v[0-9].*"
skip_tags = ".*-rc.*|.*-alpha.*|.*-beta.*"