forked from nervosnetwork/ckb
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.release-plz.toml
More file actions
72 lines (67 loc) · 2.43 KB
/
.release-plz.toml
File metadata and controls
72 lines (67 loc) · 2.43 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
[workspace]
# Only mark root crate release as latest
git_release_latest = false
git_release_draft = true
git_release_enable = false
features_always_increment_minor = true
[changelog]
body = """
## [{{ version }}]\
{%- if release_link -%}\
({{ release_link }})\
{% endif %} \
- {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
{%- if commit.scope -%}
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message }}{{ self::username(commit=commit) }}\
{%- if commit.links %} \
({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%})\
{% endif %}
{% else -%}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{{ self::username(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor %}
{%- if remote.contributors %}
### Contributors
{% for contributor in remote.contributors %}
- @{{ contributor.username }}
{%- endfor %}
{% endif -%}
{%- macro username(commit) -%}
{% if commit.remote.username %} (by @{{ commit.remote.username }}){% endif -%}
{% endmacro -%}
"""
commit_parsers = [
{ field = "author.name", pattern = "\\[bot\\]", skip = true },
{ message = "^release ", skip = true },
{ message = "no-changelog", skip = true },
{ message = "^ci[:(]", skip = true },
{ message = "^feat", group = "Added" },
{ message = "^[aA]dd", group = "Added" },
{ message = "^[sS]upport", group = "Added" },
{ message = "^[rR]emove", group = "Removed" },
{ message = "^[dD]elete", group = "Removed" },
{ message = "^[dD]precate", group = "Deprecated" },
{ message = "^[tT]est", group = "Fixed" },
{ message = "^[fF]ix", group = "Fixed" },
{ message = "^.*: add", group = "Added" },
{ message = "^.*: support", group = "Added" },
{ message = "^.*: remove", group = "Removed" },
{ message = "^.*: delete", group = "Removed" },
{ message = "^.*: deprecate", group = "Deprecated" },
{ message = "^.*: test", group = "Fixed" },
{ message = "^.*: fix", group = "Fixed" },
{ message = "[sS]ecurity", group = "Security" },
{ message = "^.*", group = "Changed" },
]
[[package]]
name = "ckb"
# Root crate will be published manually
release = false
publish = false
git_tag_enable = false
git_tag_name = "v{{ version }}"