-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcliff.toml
More file actions
47 lines (45 loc) · 1.81 KB
/
Copy pathcliff.toml
File metadata and controls
47 lines (45 loc) · 1.81 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
[changelog]
header = "# Changelog\n\nAll notable changes to Sense.\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 %}
- {{ commit.message | split(pat="\n") | first }}\
{% endfor %}
{% endfor %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
# Better output of an existing surface (patch bump, like fix); feat stays
# reserved for new capability, fix for real defects.
{ message = "^enhance", group = "Enhancements" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactoring" },
# Bench/benchmark harness commits are internal tooling, not the shipped product:
# never release-bump or appear in the product changelog (e.g. bench(rails-vertical): ...).
{ message = "^[Bb]ench", skip = true },
# sense-lab commits are the same kind of internal tooling: a second binary
# that grades the product and never ships with it (e.g. lab(catalog): ...).
# Anchored on the paren so it cannot swallow an unrelated subject starting
# with "lab" (a "labels:" commit would otherwise vanish from the changelog).
{ message = "^lab\\(", skip = true },
{ message = "^docs", skip = true },
{ message = "^test", skip = true },
{ message = "^chore", skip = true },
{ message = "^ci", skip = true },
{ message = "^build", skip = true },
{ message = "^Merge", skip = true },
]
[bump]
features_always_bump_minor = true
breaking_always_bump_major = true