[changelog]
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% set_global group_order = ["Features", "Bug Fixes", "Performance", "Refactoring", "Documentation", "Styling", "Testing", "Build", "CI", "Miscellaneous Tasks", "Security"] %}\
{% for group_name in group_order %}\
{% set commits_in_group = commits | filter(attribute="group", value=group_name) %}\
{% if commits_in_group | length > 0 %}\
### {{ group_name }}
{% for commit in commits_in_group %}\
- {{ commit.message | split(pat="\n") | first | trim | upper_first }}
{% endfor %}\
{% endif %}\
{% endfor %}\
{% set other_commits = commits | filter(attribute="group", value="Other") %}\
{% if other_commits | length > 0 %}\
{% for commit in other_commits %}\
- {{ commit.message | split(pat="\n") | first | trim | upper_first }}
{% endfor %}\
{% endif %}\n
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_parsers = [
{ message = "^Merge pull request", skip = true },
{ message = "^Merge branch", skip = true },
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactoring" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^build", group = "Build" },
{ message = "^ci", group = "CI" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore: release", skip = true },
{ message = "^Release ", skip = true },
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
{ message = ".*", group = "Other" },
]
protect_breaking_commits = false
filter_commits = false
sort_commits = "oldest"