[changelog]
body = """
## What's Changed
{%- if version %} in {{ version | trim_start_matches(pat="v") }}{%- endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | split(pat="\n") | first | trim | 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 %}
{%- if github -%}
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
{% raw %}\n{% endraw -%}
### New Contributors
{%- endif %}\
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
* @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
{%- endfor -%}
{%- endif -%}
{% if version %}
{% if previous.version %}
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
{% endif %}
{% else -%}
{% raw %}\n{% endraw %}
{% endif %}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
trim = true
render_always = true
postprocessors = [
]
[git]
conventional_commits = true
filter_unconventional = true
require_conventional = false
split_commits = false
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
protect_breaking_commits = true
commit_parsers = [
{ message = "^[a-zA-Z]+(\\(.+\\))?!:", group = "<!-- 00 -->๐ฅ Breaking Changes", increment = "Major" },
{ message = "^feat(\\(.+\\))?:", group = "<!-- 0 -->๐ Features" },
{ message = "^fix(\\(.+\\))?:", group = "<!-- 1 -->๐ Bug Fixes" },
{ message = "^refactor(\\(.+\\))?:", group = "<!-- 2 -->๐ Refactor", increment = "Minor" },
{ message = "^doc(\\(.+\\))?:", group = "<!-- 3 -->๐ Documentation" },
{ message = "^perf(\\(.+\\))?:", group = "<!-- 4 -->โก Performance" },
{ message = "^style(\\(.+\\))?:", group = "<!-- 5 -->๐จ Styling" },
{ message = "^test(\\(.+\\))?:", group = "<!-- 6 -->๐งช Testing" },
{ message = "^chore(\\(.+\\))?:|^ci(\\(.+\\))?:", group = "<!-- 7 -->โ๏ธ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->๐ก๏ธ Security" },
{ message = "^revert", group = "<!-- 9 -->โ๏ธ Revert" },
{ message = ".*", group = "<!-- 10 -->๐ผ Other" },
]
filter_commits = false
link_parsers = []
use_branch_tags = false
topo_order = false
topo_order_commits = true
sort_commits = "oldest"
recurse_submodules = false
[bump]
features_always_bump_minor = true
breaking_always_bump_major = true
custom_major_increment_regex = "major"
custom_minor_increment_regex = "minor|more"
initial_tag = "v0.0.0"