9
9
# template for the changelog header
10
10
header = """
11
11
# Changelog\n
12
- All notable changes to this project will be documented in this file.\n
13
12
"""
14
13
# template for the changelog body
15
14
# https://keats.github.io/tera/docs/#introduction
15
+ # https://github.com/orhun/git-cliff/blob/main/cliff.toml
16
16
body = """
17
17
{% if version %}\
18
18
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
@@ -24,7 +24,8 @@ body = """
24
24
{% for commit in commits %}
25
25
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
26
26
{% if commit.breaking %}[**breaking**] {% endif %}\
27
- {{ commit.message | upper_first }}\
27
+ {{ commit.message | split(pat="\n ") | first | upper_first | trim }} \
28
+ ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))\
28
29
{% endfor %}
29
30
{% endfor %}\n
30
31
"""
@@ -36,7 +37,7 @@ footer = """
36
37
trim = true
37
38
# postprocessors
38
39
postprocessors = [
39
- # { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff " }, # replace repository URL
40
+ { pattern = ' <REPO>' , replace = " https://github.com/ZeroKnowledgeNetwork/client " }, # replace repository URL
40
41
]
41
42
# render body even when there are no releases to process
42
43
# render_always = true
@@ -61,7 +62,7 @@ commit_preprocessors = [
61
62
# regex for parsing and grouping commits
62
63
commit_parsers = [
63
64
{ message = " ^feat" , group = " <!-- 0 -->π Features" },
64
- { message = " ^fix" , group = " <!-- 1 -->π Bug Fixes" },
65
+ { message = " ^fix" , group = " <!-- 1 -->π Bug Fixes" },
65
66
{ message = " ^doc" , group = " <!-- 3 -->π Documentation" },
66
67
{ message = " ^perf" , group = " <!-- 4 -->β‘ Performance" },
67
68
{ message = " ^refactor" , group = " <!-- 2 -->π Refactor" },
0 commit comments