-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease-plz.toml
82 lines (74 loc) · 2.56 KB
/
release-plz.toml
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
[workspace]
git_release_enable = false
[[package]]
name = "xtask"
release = false
[[package]]
name = "paketkoll_workspace_hack"
release = false
[[package]]
name = "paketkoll_core"
publish_features = ["arch_linux", "debian"]
# We only want GH releases for the binaries
[[package]]
changelog_include = [
"konfigkoll_script",
"konfigkoll_core",
"konfigkoll_cache",
"konfigkoll_hwinfo",
]
git_release_enable = true
git_release_type = "auto"
name = "konfigkoll"
[[package]]
git_release_enable = true
git_release_type = "auto"
name = "paketkoll"
[changelog]
body = """
{% 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 %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
header = """
# Changelog\n
All notable changes to this project will be documented in this file.
Keep in mind that this is only updated when releases are made and the file
is generated automatically from commit messages (and may or may not be lightly
edited).\n
For a possibly more edited message focused on the binary please see the github
releases.\n
"""
protect_breaking_commits = true
sort_commits = "newest"
trim = true
commit_preprocessors = [
# remove issue numbers from commits
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug fixes" },
{ message = "^docs?", group = "<!-- 2 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 3 -->⚡ Performance improvements" },
{ message = "^diag", group = "<!-- 4 -->🩺 Diagnostics & output formatting" },
{ message = "^refactor", group = "<!-- 5 -->🚜 Refactoring" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^(churn|chore)\\(release\\): prepare for", skip = true },
{ message = "^(churn|chore)\\(deps.*\\)", skip = true },
{ message = "^(churn|chore)\\(pr\\)", skip = true },
{ message = "^(churn|chore)\\(pull\\)", skip = true },
{ message = "^churn|chore|ci", group = "<!-- 7 -->⚙️ Other stuff" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]