-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy path.release-plz.toml
More file actions
96 lines (87 loc) · 3.03 KB
/
Copy path.release-plz.toml
File metadata and controls
96 lines (87 loc) · 3.03 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[workspace]
changelog_update = false
git_release_enable = false
git_tag_enable = false
semver_check = false
pr_labels = ["release"]
# This is necessary since we need to remove the
# workspace_hack crate in CI before publishing
allow_dirty = true
[changelog]
header = """# Changelog
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).
## [Unreleased]
"""
body = """
## [{{ version | trim_start_matches(pat="v") }}]\
{%- if release_link -%}\
({{ release_link }})\
{% endif %} \
- {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
{% if group != "other" %}
### {{ group | striptags | trim | 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) }}{{ self::pr(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endif %}
{% 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 -%}
{%- macro pr(commit) -%}
{% if commit.remote.pr_number %} - #{{ commit.remote.pr_number }}{% endif -%}
{% endmacro -%}
"""
commit_parsers = [
{ message = "^breaking", group = "<!-- 0 -->‼️ Breaking changes" },
{ message = "^feat", group = "<!-- 1 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 2 -->🐛 Bug Fixes" },
{ message = "^deprecated", group = "<!-- 3 --> ⚠️ Deprecations" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^doc", group = "<!-- 5 -->📚 Documentation" },
{ body = ".*security", group = "<!-- 6 -->🛡️ Security" },
{ message = "^polish", group = "<!-- 7 -->🫧 Polishing" },
{ message = "^test", group = "<!-- 8 -->🧪 Testing" },
{ message = "^.*", skip = true },
]
postprocessors = [
{ pattern = '.*', replace_command = "dprint fmt --stdin md" },
]
[[package]]
name = "pavex"
changelog_update = true
changelog_include = [
"pavex_cli",
"pavexc",
"pavexc_cli",
"pavex_tracing",
"pavex_cli_client",
"pavexc_cli_client",
"pavex_macros",
"pavex_miette",
"pavex_bp_schema",
"pavex_session",
"pavex_session_sqlx",
"pavex_session_redis",
"pavex_session_memory_store",
]
changelog_path = "CHANGELOG.md"
git_tag_name = "{{ version }}"
git_tag_enable = true