-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathcliff.toml
More file actions
73 lines (66 loc) · 2.76 KB
/
Copy pathcliff.toml
File metadata and controls
73 lines (66 loc) · 2.76 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
63
64
65
66
67
68
69
70
71
72
73
[changelog]
header = """# Changelog
All notable changes to this project are documented here.
Versions follow [Semantic Versioning](https://semver.org/).
Format follows [Keep a Changelog](https://keepachangelog.com/).
"""
body = """
{% set has_commits = commits | length > 0 %}\
{% if version and has_commits %}\
## [{{ version | trim_start_matches(pat="v") }}] — {{ timestamp | date(format="%Y-%m-%d") }}
{% elif not version %}\
## [Unreleased]
{% endif %}\
{% if has_commits %}\
{% for group, commits in commits | group_by(attribute="group") %}\
### {{ group }}
{% for commit in commits %}\
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}\
{{ commit.message | upper_first }}\
{% if commit.breaking %} ⚠ BREAKING CHANGE{% endif %}
{% endfor %}
{% endfor %}\
{% endif %}\
"""
footer = ""
trim = true
[git]
commit_preprocessors = [
{ pattern = "^\\s+", replace = "" },
{ pattern = "^Merge pull request.*", replace = "chore: merge" },
{ pattern = "^Merge branch.*", replace = "chore: merge" },
{ pattern = "<([^>]+)>", replace = "`$1`" },
{ pattern = "^([A-Z].*)", replace = "chore: $1" },
{ pattern = "^(--.+)", replace = "chore: $1" },
{ pattern = "^([a-z]+[^:!(a-z].*)", replace = "chore: $1" },
{ pattern = "^([a-z]+)$", replace = "chore: $1" },
]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Changed" },
{ message = "^docs", group = "Documentation" },
{ body = ".*security", group = "Security" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore", skip = true },
{ message = "^ci", skip = true },
{ message = "^style", skip = true },
{ message = "^test", skip = true },
{ message = "^build", skip = true },
{ message = "^init", skip = true },
{ message = ".*", skip = true },
]
protect_breaking_commits = true
filter_commits = false
tag_pattern = "v[0-9].*"
skip_tags = ""
ignore_tags = ""
topo_order = false
sort_commits = "oldest"
# [remote.github] is intentionally omitted — not needed for changelog generation
# and recent git-cliff versions reject the section without explicit owner/repo.
# Add it back only if you reference {{commit.github.*}} template variables.