-
Notifications
You must be signed in to change notification settings - Fork 0
/
cliff.toml
30 lines (28 loc) · 967 Bytes
/
cliff.toml
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
[changelog]
body = """
{% set repo_prefix = get_env(name="REPO_PREFIX", default="") %}
{% if version %}\
## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## Unreleased
{% endif %}\
{% if previous %}\
{% if previous.version and version %}
### Diff
[{{ previous.version }}...{{ version }}]({{repo_prefix}}compare/{{ previous.version }}...{{ version }})
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits | reverse %}
- {{ commit.message | split(pat="\n") | first | trim }} [#{{ commit.id | truncate(length=7, end="") }}]({{repo_prefix}}commit/{{ commit.id }})\
{% endfor %}
{% endfor %}\n
"""
[git]
filter_unconventional = false
conventional_commits = false
commit_parsers = [
{ message = "^chore: Release", skip = true },
{ message = "^", group = "Changelog" },
]