-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
75 lines (68 loc) · 2.85 KB
/
Copy pathcliff.toml
File metadata and controls
75 lines (68 loc) · 2.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[bump]
initial_tag = "v0.1.0"
[remote.github]
owner = "burgdev"
repo = "cartoload"
[git]
tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+"
sort_commits = "newest"
conventional_commits = false
filter_unconventional = false
commit_parsers = [
{ field = "github.pr_labels", pattern = "INTERNAL", skip = true },
{ field = "github.pr_labels", pattern = "BREAKING", group = "<!-- 00 -->🏗️ Breaking changes" },
{ field = "github.pr_labels", pattern = "type:feature", group = "<!-- 10 -->🚀 Features" },
{ field = "github.pr_labels", pattern = "type:bug", group = "<!-- 20 -->🐛 Fixes" },
{ field = "github.pr_labels", pattern = "type:refactor", group = "<!-- 30 -->🏭 Refactor" },
{ field = "github.pr_labels", pattern = "type:docs", group = "<!-- 40 -->📝 Documentation" },
{ field = "github.pr_labels", pattern = "type:deps", group = "<!-- 50 -->🧪 Dependencies" },
{ field = "github.pr_labels", pattern = "type:others", group = "<!-- 60 -->🌀 Others" },
{ field = "github.pr_labels", pattern = "type:tooling", group = "<!-- 60 -->🌀 Others" },
{ field = "github.pr_labels", pattern = ".*", skip = true },
]
commit_preprocessors = [{ pattern = '\.?\s*\(#[0-9]+\)$', replace = "" }]
[changelog]
header = """
<!-- Auto generated. Run 'just release' in order to update -->\n
# Changelog\n
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
"""
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{% if version -%}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else -%}
## [Unreleased]
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
#### {{ group | striptags | trim | upper_first }}
{%- for commit in commits %}
- {{ commit.remote.pr_title | split(pat="\n") | first | upper_first | trim }}\
{% if commit.remote.pr_number %}\
{# #} ([#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})) \
{%- endif -%}
{% endfor %}
{% endfor %}
{% if version -%}
{% if previous.version -%}
[{{ version | trim_start_matches(pat="v") }}]: \
{{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}
{% else -%}
[{{ version | trim_start_matches(pat="v") }}]: \
{{ self::remote_url() }}/releases/tag/{{ version }}
{% endif -%}
{% else -%}
[unreleased]: {{ self::remote_url() }}/compare/{{ previous.version }}..HEAD
{% endif -%}
{# #}\n
"""
footer = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
trim = true