-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
59 lines (56 loc) · 2.36 KB
/
Copy pathcliff.toml
File metadata and controls
59 lines (56 loc) · 2.36 KB
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
[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 %}
{%- if commits | filter(attribute="breaking", value=true) | length != 0 %}
### Breaking Changes
{% for commit in commits | filter(attribute="breaking", value=true) | unique(attribute="message") -%}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | split(pat="\n") | first | trim | upper_first }}\
{%- if commit.remote.pr_number %} ([#{{ commit.remote.pr_number }}](https://github.com/rude-dev/rude/pull/{{ commit.remote.pr_number }})){% endif %}
{% endfor -%}
{%- endif %}
{% for group, commits in commits | filter(attribute="breaking", value=false) | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits | unique(attribute="message") -%}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | split(pat="\n") | first | trim | upper_first }}\
{%- if commit.remote.pr_number %} ([#{{ commit.remote.pr_number }}](https://github.com/rude-dev/rude/pull/{{ commit.remote.pr_number }})){% endif %}
{% endfor %}
{% endfor -%}
"""
trim = true
footer = """
{%- for release in releases -%}
{% if release.version %}
{% if release.previous.version %}
[{{ release.version | trim_start_matches(pat="v") }}]: https://github.com/rude-dev/rude/compare/{{ release.previous.version }}...{{ release.version }}
{%- else %}
[{{ release.version | trim_start_matches(pat="v") }}]: https://github.com/rude-dev/rude/tree/{{ release.version }}
{%- endif %}
{%- endif %}
{%- endfor %}
<!-- generated by git-cliff -->
"""
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^refactor", group = "Changed" },
{ message = "^perf", group = "Changed" },
{ message = "^build", skip = true },
{ message = "^doc", skip = true },
{ message = "^style", skip = true },
{ message = "^chore", skip = true },
{ message = "^ci", skip = true },
{ message = "^test", skip = true },
{ message = "^debug", skip = true },
]
protect_breaking_commits = true
tag_pattern = "v[0-9].*"
sort_commits = "newest"