-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrelease-plz.toml
184 lines (157 loc) Β· 4.37 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[workspace]
changelog_update = false # update changelog automatically
git_release_enable = false # create a release on github
git_tag_enable = false # create a tag on github
dependencies_update = false # update dependencies automatically
publish = false # publish the package
release = false # release the package
release_always = false # release are made on every commit
semver_check = false # check if the version is a valid semver
publish_timeout = "60m" # timeout for the publish command
pr_labels = ["release"]
pr_name = "ci(release): Release v{{ version }}"
git_release_body = """
{{ changelog }}
{% if remote.contributors %}
### Contributors
{% for contributor in remote.contributors %}
* @{{ contributor.username }}
{% endfor %}
{% endif %}
"""
[[package]]
name = "fuel-streams"
changelog_update = true
changelog_path = "./CHANGELOG.md"
git_tag_name = "v{{ version }}"
git_tag_enable = true
git_release_enable = true
release = true
publish = true
semver_check = true
changelog_include = [
"fuel-data-parser",
"fuel-message-broker",
"fuel-streams-core",
"fuel-streams-domains",
"fuel-streams-subject",
"fuel-streams-store",
"fuel-streams-types",
"fuel-web-utils",
"sv-consumer",
"sv-publisher",
"sv-webserver",
]
[[package]]
name = "fuel-data-parser"
release = true
publish = true
[[package]]
name = "fuel-message-broker"
release = true
publish = true
[[package]]
name = "fuel-streams-core"
release = true
publish = true
semver_check = true
[[package]]
name = "fuel-streams-domains"
release = true
publish = true
semver_check = true
[[package]]
name = "subject-derive"
release = true
publish = true
[[package]]
name = "fuel-streams-subject"
release = true
publish = true
[[package]]
name = "fuel-streams-store"
release = true
publish = true
semver_check = true
[[package]]
name = "fuel-streams-types"
release = true
publish = true
semver_check = true
[[package]]
name = "fuel-web-utils"
release = true
publish = true
[[package]]
name = "fuel-streams-test"
release = false
publish = false
[[package]]
name = "subjects-schema"
release = false
publish = false
[[package]]
name = "sv-consumer"
release = false
publish = false
[[package]]
name = "sv-publisher"
release = false
publish = false
[[package]]
name = "sv-webserver"
release = false
publish = false
[changelog]
sort_commits = "newest"
header = """# Changelog
"""
body = """
{%- macro username(commit) -%}
{%- if commit.remote.username %} @{{ commit.remote.username }}{% endif -%}
{%- endmacro -%}
{% macro print_commit(commit) -%}
{%- if commit.id %}
- {% if commit.breaking %}[**breaking**] {% endif %}\
{% if commit.scope %}*({{ commit.scope }})*: {% endif %}\
{{ commit.message | upper_first }} \
([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}) {{ self::username(commit=commit) }})
{%- endif %}
{%- endmacro -%}
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}]({{ release_link }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}
{% endif %}
{% for group, commits in commits
| filter(attribute="merge_commit", value=false)
| unique(attribute="message")
| group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{%- for commit in commits %}
{{ self::print_commit(commit=commit) }}
{%- endfor %}
{%- endfor %}
{%- if remote.contributors %}
### πͺπΌ Contributors
{% for contributor in remote.contributors %}
* @{{ contributor.username }}
{%- endfor %}
{% endif %}
Want to contribute? Check out our [CONTRIBUTING.md](./CONTRIBUTING.md) guide!
---\n
"""
commit_parsers = [
{ message = "^feat\\((.*?)\\)", group = "<!-- 0 -->β Features" },
{ message = "^fix\\((.*?)\\)", group = "<!-- 1 -->π Bug Fixes" },
{ message = "^refactor\\((.*?)\\)", group = "<!-- 2 -->π Refactor" },
{ message = "^docs\\((.*?)\\)", group = "<!-- 3 -->π Documentation" },
{ message = "^perf\\((.*?)\\)", group = "<!-- 4 -->π Performance" },
{ message = "^build\\((.*?)\\)", group = "<!-- 5 -->ποΈ Build" },
{ message = "^test\\((.*?)\\)", group = "<!-- 6 -->π§ͺ Testing" },
{ message = "^ci\\((.*?)\\)", group = "<!-- 7 -->π CI" },
{ message = "^ci\\(release\\)", skip = true },
{ message = "^.*\\((.*?)\\)", group = "<!-- 8 -->π Other" },
]