[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.\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 %}
{%- if commit.scope -%}
- **{{commit.scope}}:** {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING!** ⚠️ : {{commit.breaking_description}}
{% endif -%}
{% else -%}
- {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING!** ⚠️ : {{commit.breaking_description}}
{% endif -%}
{% endif -%}
{% endfor -%}
{% raw %}\n{% endraw %}\
{% endfor %}\n
"""
trim = true
footer = """"""
[git]
conventional_commits = true
commit_parsers = [
{ message = "^content*", group = "<!-- 0 -->Content" },
{ message = "^feat*", group = "<!-- 1 -->Features" },
{ message = "^fix*", group = "<!-- 2 -->Bug fixes" },
{ message = "^perf*", group = "<!-- 3 -->Performance" },
]
filter_commits = true
tag_pattern = "v[0-9]*"
topo_order = false
sort_commits = "newest"