-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
34 lines (32 loc) · 1.37 KB
/
cliff.toml
File metadata and controls
34 lines (32 loc) · 1.37 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
[changelog]
header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n"
body = """
{% if version %}## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
{% if commits | length > 0 %}### {{ group }}
{% for commit in commits %}
- {{ commit.message | trim }}
{% endfor %}
{% endif %}
{% endfor %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = '^chore\(release\):', skip = true },
{ message = '^feat(\(.*\))?:', group = "Added" },
{ message = '^fix(\(.*\))?:', group = "Fixed" },
{ message = '^docs?(\(.*\))?:', group = "Documentation" },
{ message = '^perf(\(.*\))?:', group = "Changed" },
{ message = '^refactor(\(.*\))?:', group = "Changed" },
{ message = '^test(\(.*\))?:', group = "Changed" },
{ message = '^build(\(.*\))?:', group = "Changed" },
{ message = '^style(\(.*\))?:', group = "Changed" },
{ message = '^chore(\(.*\))?:', group = "Changed" },
{ message = '^ci(\(.*\))?:', group = "Changed" },
{ message = '^revert(\(.*\))?:', group = "Changed" },
]
tag_pattern = "v[0-9].*"