mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 19:10:35 +00:00
86 lines
2.9 KiB
TOML
86 lines
2.9 KiB
TOML
|
[changelog]
|
||
|
header = """
|
||
|
# Changelog\n
|
||
|
All notable changes to this project will be documented in this file.
|
||
|
|
||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
|
||
|
"""
|
||
|
|
||
|
body = """
|
||
|
{%- macro remote_url() -%}
|
||
|
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
||
|
{%- endmacro -%}
|
||
|
|
||
|
{% if version -%}
|
||
|
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||
|
{% else -%}
|
||
|
## [Unreleased]
|
||
|
{% endif -%}
|
||
|
|
||
|
### Details\
|
||
|
|
||
|
{% for group, commits in commits | group_by(attribute="group") %}
|
||
|
#### {{ group | upper_first }}
|
||
|
{%- for commit in commits %}
|
||
|
- {{ commit.message | upper_first | trim }}\
|
||
|
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
|
||
|
{% if commit.github.pr_number %} in \
|
||
|
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \
|
||
|
{%- endif -%}
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
|
||
|
## 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 %}\n
|
||
|
"""
|
||
|
|
||
|
footer = """
|
||
|
{%- macro remote_url() -%}
|
||
|
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
||
|
{%- 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 -%}
|
||
|
[unreleased]: {{ self::remote_url() }}/compare/{{ release.previous.version }}..HEAD
|
||
|
{% endif -%}
|
||
|
{% endfor %}
|
||
|
<!-- generated by git-cliff -->
|
||
|
"""
|
||
|
trim = true
|
||
|
|
||
|
[git]
|
||
|
conventional_commits = true
|
||
|
filter_unconventional = true
|
||
|
split_commits = false
|
||
|
commit_parsers = [
|
||
|
{ message = "^feat", group = "Features" },
|
||
|
{ message = "^fix", group = "Bug Fixes" },
|
||
|
{ message = "^doc", group = "Documentation", default_scope = "unscoped" },
|
||
|
{ message = "^perf", group = "Performance" },
|
||
|
{ message = "^refactor", group = "Refactor" },
|
||
|
{ message = "^style", group = "Styling" },
|
||
|
{ message = "^test", group = "Testing" },
|
||
|
{ message = "^chore\\(release\\): prepare for", skip = true },
|
||
|
{ message = "^chore", group = "Miscellaneous Tasks" },
|
||
|
{ body = ".*security", group = "Security" },
|
||
|
]
|
||
|
protect_breaking_commits = true
|
||
|
filter_commits = true
|
||
|
tag_pattern = "v[0-9].*"
|
||
|
ignore_tags = ""
|
||
|
topo_order = true
|
||
|
sort_commits = "newest"
|