-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease-plz.toml
More file actions
53 lines (44 loc) · 1.65 KB
/
Copy pathrelease-plz.toml
File metadata and controls
53 lines (44 loc) · 1.65 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
[workspace]
pr_draft = true
git_release_enable = false
publish = true
[changelog]
protect_breaking_commits = false
tag_pattern = 'v[0-9]+\.[0-9]+\.[0-9]+'
sort_commits = "oldest"
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/pact-foundation/pact-cli/issues/${2}))" },
]
commit_parsers = [
{ message = "^(chore|fix)\\(deps.*\\)", skip = true },
{ group = "<!-- 00 -->🚀 Features", message = "^feat" },
{ group = "<!-- 01 -->🐛 Bug Fixes", message = "^fix" },
{ group = "<!-- 50 -->🚜 Refactor", message = "^refactor" },
{ group = "<!-- 51 -->⚡️ Performance", message = "^perf" },
{ group = "<!-- 52 -->🎨 Styling", message = "^style" },
{ group = "<!-- 60 -->📚 Documentation", message = "^docs" },
{ group = "<!-- 80 -->🧪 Testing", message = "^test" },
{ group = "<!-- 98 -->↩️ Revert", message = "^revert" },
{ group = "<!-- 99 -->🛠️ Miscellaneous Tasks", message = "^chore" },
{ group = "<!-- 99 -->📦 Other", message = ".*" },
]
trim = true
header = """
# Changelog
All notable changes to this project will be documented in this file.
"""
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 -%}
"""