[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
body = """
{% macro remote_url() %}https://github.com/elioetibr/rust-yaml{% endmacro %}\
{% 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 }}:** {% endif %}\
{{ commit.message | upper_first }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif %}\
{% if commit.remote.pr_number %} in [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}){%- endif %}\
{% endfor %}
{% endfor %}\n
"""
footer = """
{% macro remote_url() %}https://github.com/elioetibr/rust-yaml{% endmacro %}\
{% for release in releases -%}
{% if release.version -%}
{% if release.previous.version -%}
[{{ release.version | trim_start_matches(pat="v") }}]: {{ self::remote_url() }}/compare/{{ release.previous.version }}...{{ release.version }}
{% endif -%}
{% else -%}
{% if release.previous.version -%}
[unreleased]: {{ self::remote_url() }}/compare/{{ release.previous.version }}...HEAD
{% endif -%}
{% endif -%}
{% endfor %}
"""
trim = true
[git]
conventional_commits = true
tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
filter_unconventional = false
split_commits = false
commit_parsers = [
{ message = "^init", group = "<!-- 00 -->๐ Initialization" },
{ message = "^feat", group = "<!-- 01 -->๐ Features" },
{ message = "^fix", group = "<!-- 02 -->๐ Bug Fixes" },
{ message = "^refactor", group = "<!-- 03 -->๐ง Refactoring" },
{ message = "^perf", group = "<!-- 04 -->โก Performance" },
{ message = "^doc", group = "<!-- 05 -->๐ Documentation" },
{ message = "^style", group = "<!-- 06 -->๐จ Styling" },
{ message = "^test", group = "<!-- 07 -->๐งช Testing" },
{ message = "^build", group = "<!-- 08 -->๐ฆ Build" },
{ message = "^ci", group = "<!-- 09 -->๐ท CI/CD" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^release", skip = true },
{ message = "^chore\\(deps", group = "<!-- 10 -->โฌ๏ธ Dependencies" },
{ message = "^chore", group = "<!-- 11 -->๐จ Miscellaneous" },
{ message = "^revert", group = "<!-- 12 -->โช Reverts" },
]
protect_breaking_commits = false
filter_commits = false
topo_order = false
sort_commits = "oldest"
[remote.github]
owner = "elioetibr"
repo = "rust-yaml"