-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
93 lines (79 loc) Β· 2.81 KB
/
Copy pathcliff.toml
File metadata and controls
93 lines (79 loc) Β· 2.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on Conventional Commits."""
body = """
{%- if version %}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}
## [Unreleased] - {{ now() | date(format="%Y-%m-%d") }}
{% endif %}
{%- for group, commits in commits | group_by(attribute="group") %}
### {{ group }}
{% for commit in commits %}
- {% if commit.scope %}{{ commit.scope }}: {% endif %}{{ commit.raw_message | split(pat="\n") | first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/commit/{{ commit.id }}))
{%- if commit.body %}
{%- for line in commit.body | split(pat="\n") %}
{%- if line | trim != "" %}
{{ line | trim }}
{%- endif %}
{%- endfor %}
{%- endif %}
{% endfor %}
{%- endfor -%}
"""
trim = false
render_always = false
postprocessors = [
{ pattern = '\(#([0-9]+)\)', replace = "[#${1}]({{ repository_url }}/issues/${1})" }
]
[remote.github]
owner = "orbitbits"
repo = "tildr"
token = "$GITHUB_TOKEN"
#token = "" # Leaving it blank disables API calls, and Cliff will not fetch PRs.
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
top_order = true
use_branch_tags = false
# Repo URL (used in links)
repository_url = "https://github.com/orbitbits/tildr"
commit_preprocessors = [
# Normalizes BREAKING CHANGE in the body
{ pattern = "BREAKING CHANGE:", replace = "BREAKING:" },
# Escape HTML tag
{ pattern = "<([^>]+)>", replace = "`<$1>`" }
]
commit_parsers = [
{ message = "^feat(\\([^)]+\\))?!?:", group = "Features", breaking = true },
{ message = "^feat(\\([^)]+\\))?:", group = "Features" },
{ message = "^fix(\\([^)]+\\))?!?:", group = "Bug Fixes", breaking = true },
{ message = "^fix(\\([^)]+\\))?:", group = "Bug Fixes" },
{ message = "^perf(\\([^)]+\\))?!?:", group = "Performance", breaking = true },
{ message = "^perf(\\([^)]+\\))?:", group = "Performance" },
{ message = "^refactor(\\([^)]+\\))?!?:", group = "Refactoring", breaking = true },
{ message = "^refactor(\\([^)]+\\))?:", group = "Refactoring" },
# Ignore
{ message = "^docs(\\([^)]+\\))?:", skip = true },
{ message = "^test(\\([^)]+\\))?:", skip = true },
{ message = "^build(\\([^)]+\\))?:", skip = true },
{ message = "^ci(\\([^)]+\\))?:", skip = true },
{ message = "^chore(\\([^)]+\\))?:", skip = true },
{ message = "^style(\\([^)]+\\))?:", skip = true },
{ message = "^add(\\([^)]+\\))?:", skip = true },
]
# Optional: Ignore specific commits
commit_ignore = [
"^Merge branch",
"^Merge pull request",
"^Initial commit$"
]
# tag control
tag_pattern = "v[0-9]*"
skip_tags = ""
ignore_tags = ""
# ordering
sort_commits = "newest"