forked from getarcaneapp/arcane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
60 lines (52 loc) · 2.25 KB
/
cliff.toml
File metadata and controls
60 lines (52 loc) · 2.25 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
58
59
60
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
[remote.github]
owner = "getarcaneapp"
repo = "arcane"
[git]
conventional_commits = true
filter_unconventional = true
tag_pattern = "v[0-9]*"
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
commit_parsers = [
{ message = "^feat\\(cli\\)", group = "<!-- 01 --> CLI - New features" },
{ message = "^feat", group = "<!-- 00 --> New features" },
{ message = "^fix\\(cli\\)", group = "<!-- 11 --> CLI - Bug fixes" },
{ message = "^fix", group = "<!-- 10 --> Bug fixes" },
{ message = "^perf\\(cli\\)", group = "<!-- 21 --> CLI - Performance improvements" },
{ message = "^perf", group = "<!-- 20 --> Performance improvements" },
{ message = "^docs\\(cli\\)", group = "<!-- 31 --> CLI - Documentation", default_scope = "other" },
{ message = "^docs", group = "<!-- 30 --> Documentation", default_scope = "other" },
{ message = "^chore\\(deps\\)", group = "<!-- 40 --> Dependencies" },
{ message = "^chore", skip = true },
{ message = "^release", skip = true },
{ message = "update translations via Crowdin", skip = true },
{ message = ".*", group = "<!-- 50 --> Other", default_scope = "other"},
]
filter_commits = false
[changelog]
trim = true
body = """
## {{ version | default(value="Unknown Version") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
* {{ commit.message }} \
{%- if commit.remote.pr_number -%}
([#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) by @{{ commit.remote.username | default(value=commit.author.name) }})
{%- else -%}
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}) by @{{ commit.remote.username | default(value=commit.author.name) }})
{%- endif -%}
{% endfor %}
{% endfor %}
{% if version %}
{% if previous.version %}
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
{% endif %}
{% else -%}
{% raw %}\n{% endraw %}
{% endif %}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""