[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
body = """
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [unreleased]
{% endif %}\
{% macro commit(commit) -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))\
{% endmacro -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
{{ self::commit(commit=commit) }}
{%- endfor -%}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}
{%- if not commit.scope -%}
{{ self::commit(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor %}\n
"""
trim = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/YoloDev/rstml-component" },
]
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
]
commit_parsers = [
{ message = "^feat", group = "โจ Features" },
{ message = "^fix", group = "๐ Bug Fixes" },
{ message = "^doc", group = "๐ Documentation" },
{ message = "^perf", group = "โก Performance" },
{ message = "^refactor", group = "โป๏ธ Refactor" },
{ message = "^style", group = "๐ Styling" },
{ message = "^test", group = "๐งช Testing" },
{ message = "^deps", group = "โฌ๏ธ Dependencies" },
{ message = "^ci", group = "๐ท CI" },
{ message = "^chore: release", skip = true },
{ message = "^chore", group = "๐จ Chore" },
{ message = "^build", group = "๐ท Build" },
{ message = "^revert", group = "โช Revert" },
{ message = "^wip", group = "๐ง WIP" },
]