index : rust-template
Feature rich rust template
about summary refs log tree commit diff
rust-template / cliff.toml
-rw-r--r-- blob a112d84a15621f91e56757cd7e55f90d03afe130 1417 bytes (plain)
1
[remote.github]
2
owner = "y2w8"
3
repo = "{{project-name}}"
4
5
[changelog]
6
header = """
7
# Changelog
8
All notable changes to the `{{project-name}}` crate will be documented in this file.
9
10
## [Unreleased]
11
"""
12
body = """
13
{% raw %}{% if version -%}
14
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
15
{% endif -%}
16
{% for group, commits in commits | group_by(attribute="group") %}
17
### {{ group | striptags | trim }}
18
{% for commit in commits -%}
19
- {{ commit.message | split(pat="\\n") | first | upper_first | trim }} \
20
([{{ commit.id | truncate(length=7, end="") }}](https://github.com/y2w8/{% endraw %}{{project-name}}{% raw %}/commit/{{ commit.id }})), \
21
by @{{ commit.remote.username | default(value=commit.author.name) }}
22
{% endfor %}
23
{% endfor -%}{% endraw %}
24
"""
25
trim = true
26
27
[git]
28
conventional_commits = true
29
filter_unconventional = false
30
split_commits = false
31
commit_parsers = [
32
  { message = "^feat", group = "<!-- 0 -->Added" },
33
  { message = "^fix", group = "<!-- 1 -->Fixed" },
34
  { message = "^refactor", group = "<!-- 2 -->Changed" },
35
  { message = "^perf", group = "<!-- 3 -->Performance" },
36
  { message = "^doc", group = "<!-- 4 -->Documentation" },
37
  { message = "^chore: release", skip = true },
38
  { message = "^chore\\(release\\)", skip = true },
39
  { message = ".*", group = "<!-- 5 -->Other" },
40
]
41
filter_commits = false
42
tag_pattern = "v[0-9].*"
43
sort_commits = "newest"