-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcliff.toml
More file actions
62 lines (57 loc) · 2.17 KB
/
Copy pathcliff.toml
File metadata and controls
62 lines (57 loc) · 2.17 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
59
60
61
62
[changelog]
header = """
# Changelog
All notable changes to Red are documented in this file.
"""
body = """
{% macro repository_url() -%}
https://github.com/codersauce/red
{%- endmacro %}
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}]({{ self::repository_url() }}/compare/{{ previous.version }}...{{ version }})
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}]
{% endif %}\
{% else %}\
## Unreleased
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim }}
{% for commit in commits %}\
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::repository_url() }}/commit/{{ commit.id }}))
{% endfor %}
{% endfor %}
"""
footer = """
<!-- generated by git-cliff -->
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
require_conventional = false
split_commits = false
commit_preprocessors = [
{ pattern = '\(#([0-9]+)\)', replace = "([#${1}](https://github.com/codersauce/red/issues/${1}))" },
]
commit_parsers = [
{ message = "^Merge", skip = true },
{ message = "^chore\\(release\\): prepare v", skip = true },
{ message = "^feat([(!:]|$)", group = "<!-- 00 -->Features" },
{ message = "^fix([(!:]|$)", group = "<!-- 01 -->Bug Fixes" },
{ message = "^perf([(!:]|$)", group = "<!-- 02 -->Performance" },
{ message = "^docs?([(!:]|$)", group = "<!-- 03 -->Documentation" },
{ message = "^refactor([(!:]|$)", group = "<!-- 04 -->Refactoring" },
{ message = "^test([(!:]|$)", group = "<!-- 05 -->Testing" },
{ message = "^build([(!:]|$)", group = "<!-- 06 -->Build" },
{ message = "^ci([(!:]|$)", group = "<!-- 07 -->Continuous Integration" },
{ message = "^style([(!:]|$)", group = "<!-- 08 -->Styling" },
{ message = "^revert([(!:]|$)", group = "<!-- 09 -->Reverts" },
{ message = "^chore([(!:]|$)", group = "<!-- 10 -->Maintenance" },
{ message = ".*", group = "<!-- 11 -->Other" },
]
protect_breaking_commits = true
filter_commits = false
tag_pattern = "v[0-9].*"
sort_commits = "newest"