-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcliff.toml
More file actions
57 lines (56 loc) · 2.04 KB
/
cliff.toml
File metadata and controls
57 lines (56 loc) · 2.04 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
[changelog]
header = ""
body = """
{% if version %}\
{# Only add unreleased changes #}\
{% else %}\
## {{ now() | date(format="%Y-%m-%d") }} - [?????)](<REPO>/releases/tag/v?????)
{% if previous %}\
{% if previous.commit_id and commit_id %}
[{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }})
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
{% if group != "_discard_" %}\
#### {{ group | striptags | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }} \
([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))\
{% if commit.footers %}\
{% for footer in commit.footers -%}
, {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endif %}
{% endfor %}\n
{% endif %}\
"""
footer = ""
trim = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/ad-si/TaskLite" },
]
output = "_todo_changelog.md"
[git]
conventional_commits = false # https://www.conventionalcommits.org
filter_unconventional = false
split_commits = true
commit_preprocessors = [
# Replace issue numbers
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
# { pattern = '.*', replace_command = 'typos --write-changes -' },
]
# Using HTML tags to set the sort order of the groups
commit_parsers = [
{ message = "^Webapp:", group = "<!-- 1 -->🌐 Webapp" },
{ message = "^Docs:", group = "<!-- 2 -->📚 Documentation" },
{ message = "^CI:", group = "_discard_" },
{ message = ".*", group = "<!-- 0 -->💻 General" },
]
filter_commits = false
topo_order = false
sort_commits = "oldest"