Skip to content

Commit a87921b

Browse files
committed
style(changelog): mod header, add commit link, change bug emoji
1 parent 4863b59 commit a87921b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

β€Žcliff.tomlβ€Ž

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# template for the changelog header
1010
header = """
1111
# Changelog\n
12-
All notable changes to this project will be documented in this file.\n
1312
"""
1413
# template for the changelog body
1514
# https://keats.github.io/tera/docs/#introduction
15+
# https://github.com/orhun/git-cliff/blob/main/cliff.toml
1616
body = """
1717
{% if version %}\
1818
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
@@ -24,7 +24,8 @@ body = """
2424
{% for commit in commits %}
2525
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
2626
{% 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 }}))\
2829
{% endfor %}
2930
{% endfor %}\n
3031
"""
@@ -36,7 +37,7 @@ footer = """
3637
trim = true
3738
# postprocessors
3839
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
4041
]
4142
# render body even when there are no releases to process
4243
# render_always = true
@@ -61,7 +62,7 @@ commit_preprocessors = [
6162
# regex for parsing and grouping commits
6263
commit_parsers = [
6364
{ message = "^feat", group = "<!-- 0 -->πŸš€ Features" },
64-
{ message = "^fix", group = "<!-- 1 -->πŸ› Bug Fixes" },
65+
{ message = "^fix", group = "<!-- 1 -->🐞 Bug Fixes" },
6566
{ message = "^doc", group = "<!-- 3 -->πŸ“š Documentation" },
6667
{ message = "^perf", group = "<!-- 4 -->⚑ Performance" },
6768
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },

0 commit comments

Comments
Β (0)