[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 %}\
{% 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 | split(pat="\n") | first | trim }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif %}\
{% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %}
{% endfor %}
{% endfor %}\n
{%- 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 -%}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
trim = true
[git]
commit_parsers = [
{ message = "^feat(lib)", group = "<!-- 0 -->๐ Features" },
{ message = "^fix(lib)", group = "<!-- 1 -->๐ Bug Fixes" },
{ message = "^doc(lib)", group = "<!-- 3 -->๐ Documentation" },
{ message = "^perf(lib)", group = "<!-- 4 -->โก Performance" },
{ message = "^refactor(lib)", group = "<!-- 2 -->๐ Refactor" },
{ message = "^style(lib)", group = "<!-- 5 -->๐จ Styling" },
{ message = "^test(lib)", group = "<!-- 6 -->๐งช Testing" },
{ message = "^release:", skip = true },
{ message = "^chore(lib)", group = "<!-- 7 -->โ๏ธ Miscellaneous Tasks" },
]
filter_commits = true
topo_order = false
sort_commits = "newest"
tag_pattern = "webidl2wit-cli-v[0-9]*"
skip_tags = ".*beta.*"