-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
57 lines (53 loc) · 2.19 KB
/
cliff.toml
File metadata and controls
57 lines (53 loc) · 2.19 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
# https://git-cliff.org/docs/configuration
[changelog]
header = "# Changelog\n\n"
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}](https://github.com/isokolovskii/commitizen/releases/tag/{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\
## (unreleased)
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group }}
{% for commit in commits %}\
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} by {% if commit.remote.username %}[@{{commit.remote.username}}](https://github.com/{{commit.remote.username}}) {% else %}{{ commit.author.name }}{% endif %} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/isokolovskii/commitizen/commit/{{ commit.id }}))
{% endfor %}\n
{% endfor %}\n
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
require_conventional = false
split_commits = false
link_parsers = [
{ pattern = "#(\\d+)", href = "https://github.com/isokolovskii/commitizen/issues/$1"},
{ pattern = "RFC(\\d+)", text = "ietf-rfc$1", href = "https://datatracker.ietf.org/doc/html/rfc$1"},
]
commit_parsers = [
{ message = "^feat*", group = "<!-- 0 -->:rocket: New features" },
{ message = "^fix*", group = "<!-- 1 -->:bug: Bug fixes" },
{ message = "^docs*", group = "<!-- 5 -->:books: Documentation" },
{ message = "^perf*", group = "<!-- 3 -->:zap: Performance" },
{ message = "^refactor*", group = "<!-- 4 -->:pencil: Refactor" },
{ message = "^ci*", group = "<!-- 7 -->:building_construction: ci" },
{ message = "^test*", group = "<!-- 6 -->:test_tube: Tests" },
{ message = "^chore\\(release\\)*", skip = true },
{ message = "^chore*", group = "<!-- 2 -->:screwdriver:chore" },
{ message = "^build*", group = "<!-- 7 -->:building_construction: ci" },
{ body = ".*security.*", group = "<!-- 2 -->:guard: Security" },
]
protect_breaking_commits = false
filter_commits = false
tag_pattern = "v[0-9]*.[0-9]*.[0-9]*"
skip_tags = true
ignore_tags = ""
topo_order = false
sort_commits = "newest"
[bump]
features_always_bump_minor = true
breaking_always_bump_major = true
initial_tag = "v1.0.0"
[remote.github]
owner = "isokolovskii"
repo = "commitizen"