[remote.github]
owner = "Mr-Leshiy"
repo = "shell-cell"
[changelog]
body = """
{%- if version %}
# {{ version }} has been released! :rocket:
## What's Changed
{%- else %}
## What's Changed
{%- endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits -%}
{% if commit.remote.pr_title -%}
{%- set commit_message = commit.remote.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- 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 }}](<{{ 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 %}
### New Contributors
{% 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 -%}
{%- endif %}
{% if version -%}
{% if previous.version -%}
**Full Changelog**: <{{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}>
{% endif -%}
**Links:**
- [GitHub Release](<{{ self::remote_url() }}/releases/tag/{{ version }}>)
- [crates.io](<https://crates.io/crates/scell>)
{% endif -%}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
trim = true
footer = ""
postprocessors = []
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
filter_commits = true
commit_parsers = [
{ message = "^ci", skip = true },
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^refactor", group = "Refactoring" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore", skip = true },
{ message = "^build", group = "Build" },
]
topo_order = false
sort_commits = "newest"