[changelog]
header = """
# Changelog\n
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 %}\
{% if message %}
{{message}}
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}({{ commit.scope }}) {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% if commit.remote.pr_number %} (#{{ commit.remote.pr_number }}) {% endif -%}
{% endfor %}
{% endfor %}\n
"""
footer = """
<!-- generated by git-cliff -->
"""
trim = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/savente93/snakedown" },
]
output = "CHANGELOG.md"
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
commit_parsers = [
{ message = "^feat", group = "✨ Features" },
{ message = "^fix", group = "🤕 Fixes" },
{ message = "^doc", group = "📖 Documentation" },
{ message = "release", skip = true },
{ message = ".*", group = "🛠️ Maintenance" },
]
filter_commits = false
topo_order = true
sort_commits = "oldest"