-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcliff.toml
72 lines (61 loc) · 2.53 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[changelog]
header = """
# Changelog
All notable, and not so notable, changes to this project will be documented in this file.
"""
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 %}
- [`{{ commit.id | truncate(length=7, end="") }}`](<REPO>/commit/{{ commit.id }}) \
{% if commit.scope %}(*{{ commit.scope }}*) {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - {{ commit.author.name }}
{%- endfor %}
{% endfor %}\n
"""
footer = """
{% for release in releases -%}
{% if release.version -%}
{% if release.previous.version -%}
[{{ release.version | trim_start_matches(pat="v") }}]: \
<REPO>/compare/{{ release.previous.version }}..{{ release.version }}
{% endif -%}
{% else -%}
[Unreleased]: <REPO>/compare/{{ release.previous.version }}..HEAD
{% endif -%}
{% endfor %}
"""
trim = true
postprocessors = [{ pattern = '<REPO>', replace = "https://github.com/ryanccn/nrr" }]
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](<REPO>/issues/${1}))" }]
commit_parsers = [
{ message = "^rm", group = "<!-- 0 -->Removed" },
{ message = "^feat", group = "<!-- 1 -->Features" },
{ message = "^fix", group = "<!-- 2 -->Bug Fixes" },
{ message = "^refactor", group = "<!-- 3 -->Refactor" },
{ message = "^perf", group = "<!-- 4 -->Performance" },
{ message = "^test", group = "<!-- 5 -->Testing" },
{ message = "^doc", group = "<!-- 6 -->Documentation" },
{ message = "^style", group = "<!-- 7 -->Styling" },
{ message = "^build\\(deps.*\\)", group = "<!-- 9 -->Dependencies", scope = "" },
{ message = "^chore\\(deps.*\\)", group = "<!-- 9 -->Dependencies", scope = "" },
{ message = "^chore", group = "<!-- 8 -->Miscellaneous" },
{ message = "^nix", group = "<!-- 8 -->Miscellaneous", default_scope = "nix" },
{ message = "^ci", group = "<!-- 8 -->Miscellaneous", default_scope = "ci" },
{ message = "^revert", group = "<!-- 9 -->Revert" },
]
protect_breaking_commits = false
filter_commits = false
topo_order = true
[bump]
breaking_always_bump_major = false