-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcliff.toml
42 lines (34 loc) · 1.3 KB
/
cliff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[changelog]
header = """
# Changelog
"""
body = """
{% macro print_commit(commit) -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - \
([{{ commit.id | truncate(length=7, end="") }}](https://github.com/pmariglia/poke-engine/commit/{{ commit.id }}))\
{% endmacro -%}
## [{{ version }}](https://github.com/pmariglia/poke-engine/releases/tag/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
{{ self::print_commit(commit=commit) }}
{%- endfor %}
{% for commit in commits %}
{%- if not commit.scope -%}
{{ self::print_commit(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor -%}
"""
[git]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 --> Features" },
{ message = "^fix", group = "<!-- 1 --> Bug Fixes" },
{ message = "^doc", group = "<!-- 3 --> Documentation" },
{ message = "^perf", group = "<!-- 4 --> Performance" },
{ message = "^chore|^ci", group = "<!-- 7 --> Miscellaneous Tasks" },
]