-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathcliff.toml
More file actions
68 lines (67 loc) · 3.02 KB
/
cliff.toml
File metadata and controls
68 lines (67 loc) · 3.02 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
[changelog]
header = "# Changelog\n\n"
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 | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/davidB/kubectl-view-allocations/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}
"""
trim = true
footer = ""
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_preprocessors = [
# colon-style gitmoji → conventional
{ pattern = '^:rocket:\s*\(cargo-release\)\s*', replace = "chore(release): " },
{ pattern = '^:rocket:\s*', replace = "chore(release): " },
{ pattern = '^:arrow_up:\s*', replace = "chore(deps): " },
{ pattern = '^:construction:\s*\(cargo-release\)\s*', replace = "chore(release): " },
{ pattern = '^:construction:\s*', replace = "chore: " },
# unicode gitmoji → conventional
{ pattern = '^🚀\s*\(cargo-release\)\s*', replace = "chore(release): " },
{ pattern = '^🚀\s*', replace = "chore(release): " },
{ pattern = '^✨\s*', replace = "feat: " },
{ pattern = '^🐛\s*', replace = "fix: " },
{ pattern = '^📝\s*', replace = "docs: " },
{ pattern = '^👷\s*', replace = "ci: " },
{ pattern = '^🎨\s*', replace = "style: " },
{ pattern = '^💄\s*', replace = "style: " },
{ pattern = '^♻️\s*', replace = "refactor: " },
{ pattern = '^⬆️\s*', replace = "chore(deps): " },
{ pattern = '^⬆\s*', replace = "chore(deps): " },
{ pattern = '^➖\s*', replace = "chore(deps): " },
{ pattern = '^🚨\s*', replace = "fix: " },
{ pattern = '^👽️?\s*', replace = "fix: " },
{ pattern = '^🍱\s*', replace = "chore: " },
{ pattern = '^⚗️?\s*', replace = "chore: " },
{ pattern = '^💥\s*', replace = "feat!: " },
# bare cargo-release pattern (no emoji prefix)
{ pattern = '^\(cargo-release\) version', replace = "chore(release): version" },
# Dependabot bare "Bump X from Y to Z" → chore(deps)
{ pattern = '^Bump ', replace = "chore(deps): bump " },
]
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactoring" },
{ message = "^docs?", group = "Documentation" },
{ message = "^chore\\(deps\\)", group = "Dependencies" },
{ message = "^fix\\(deps\\)", group = "Dependencies" },
{ message = "^chore|^build|^ci", skip = true },
{ message = "^style|^test", skip = true },
{ body = ".*security", group = "Security" },
]
protect_breaking_commits = false
filter_commits = false
tag_pattern = "[0-9]+\\.[0-9]+\\.[0-9]+"
# WARN: git-cliff CLI handles skip_tags = "" as "no skip", but git-cliff-core library treats it as a regex that matches everything.
# skip_tags = ""
ignore_tags = ""
topo_order = false
sort_commits = "newest"