Skip to content

Commit 047a357

Browse files
committed
chore: update change log rules
1 parent 84e2c56 commit 047a357

File tree

2 files changed

+191
-17
lines changed

2 files changed

+191
-17
lines changed

.releaserc.cjs

Lines changed: 190 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ module.exports = {
5454
{ type: "chore", section: "Maintenance" },
5555
{ type: "docs", section: "Maintenance" },
5656
{ type: "revert", section: "Fixes" },
57-
{ type: "style", hidden: true },
58-
{ type: "refactor", hidden: true },
59-
{ type: "perf", hidden: true },
60-
{ type: "test", hidden: true },
57+
{ type: "style", section: "Miscellaneous" },
58+
{ type: "refactor", section: "Miscellaneous" },
59+
{ type: "perf", section: "Miscellaneous" },
60+
{ type: "test", section: "Miscellaneous" },
6161
],
6262
},
6363
releaseRules: [
@@ -72,20 +72,194 @@ module.exports = {
7272
"@semantic-release/release-notes-generator",
7373
{
7474
preset: "conventionalcommits",
75-
parserOpts: {
76-
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES"],
77-
},
7875
presetConfig: {
7976
types: [
80-
{ type: "feat", section: "Features" },
81-
{ type: "fix", section: "Fixes" },
82-
{ type: "chore", section: "Maintenance" },
83-
{ type: "docs", section: "Maintenance" },
84-
{ type: "revert", section: "Fixes" },
85-
{ type: "style", hidden: true },
86-
{ type: "refactor", hidden: true },
87-
{ type: "perf", hidden: true },
88-
{ type: "test", hidden: true },
77+
{
78+
type: "feat",
79+
scope: "dafny",
80+
section: "Features -- All Languages",
81+
hidden: false,
82+
},
83+
{
84+
type: "feat",
85+
scope: "java",
86+
section: "Features -- Java",
87+
hidden: false,
88+
},
89+
{
90+
type: "feat",
91+
scope: "dotnet",
92+
section: "Features -- DotNet",
93+
hidden: false,
94+
},
95+
{
96+
type: "feat",
97+
scope: "python",
98+
section: "Features -- Python",
99+
hidden: false,
100+
},
101+
{
102+
type: "feat",
103+
scope: "go",
104+
section: "Features -- Go",
105+
hidden: false,
106+
},
107+
{
108+
type: "feat",
109+
scope: "rust",
110+
section: "Features -- Rust",
111+
hidden: false,
112+
},
113+
114+
{
115+
type: "fix",
116+
scope: "dafny",
117+
section: "Fixes -- All Languages",
118+
hidden: false,
119+
},
120+
{
121+
type: "fix",
122+
scope: "java",
123+
section: "Fixes -- Java",
124+
hidden: false,
125+
},
126+
{
127+
type: "fix",
128+
scope: "dotnet",
129+
section: "Fixes -- DotNet",
130+
hidden: false,
131+
},
132+
{
133+
type: "fix",
134+
scope: "python",
135+
section: "Fixes -- Python",
136+
hidden: false,
137+
},
138+
{ type: "fix", scope: "go", section: "Fixes -- Go", hidden: false },
139+
{
140+
type: "fix",
141+
scope: "rust",
142+
section: "Fixes -- Rust",
143+
hidden: false,
144+
},
145+
146+
{
147+
type: "chore",
148+
scope: "dafny",
149+
section: "Maintenance -- All Languages",
150+
hidden: false,
151+
},
152+
{
153+
type: "chore",
154+
scope: "java",
155+
section: "Maintenance -- Java",
156+
hidden: false,
157+
},
158+
{
159+
type: "chore",
160+
scope: "dotnet",
161+
section: "Maintenance -- DotNet",
162+
hidden: false,
163+
},
164+
{
165+
type: "chore",
166+
scope: "python",
167+
section: "Maintenance -- Python",
168+
hidden: false,
169+
},
170+
{
171+
type: "chore",
172+
scope: "go",
173+
section: "Maintenance -- Go",
174+
hidden: false,
175+
},
176+
{
177+
type: "chore",
178+
scope: "rust",
179+
section: "Maintenance -- Rust",
180+
hidden: false,
181+
},
182+
{
183+
type: "chore",
184+
section: "Miscellaneous",
185+
hidden: false,
186+
},
187+
{
188+
type: "docs",
189+
scope: "dafny",
190+
section: "Maintenance -- All Languages",
191+
hidden: false,
192+
},
193+
{
194+
type: "docs",
195+
scope: "java",
196+
section: "Maintenance -- Java",
197+
hidden: false,
198+
},
199+
{
200+
type: "docs",
201+
scope: "dotnet",
202+
section: "Maintenance -- DotNet",
203+
hidden: false,
204+
},
205+
{
206+
type: "docs",
207+
scope: "python",
208+
section: "Maintenance -- Python",
209+
hidden: false,
210+
},
211+
{
212+
type: "docs",
213+
scope: "go",
214+
section: "Maintenance -- Go",
215+
hidden: false,
216+
},
217+
{
218+
type: "docs",
219+
scope: "rust",
220+
section: "Maintenance -- Rust",
221+
hidden: false,
222+
},
223+
{
224+
type: "revert",
225+
scope: "dafny",
226+
section: "Fixes -- All Languages",
227+
hidden: false,
228+
},
229+
{
230+
type: "revert",
231+
scope: "java",
232+
section: "Fixes -- Java",
233+
hidden: false,
234+
},
235+
{
236+
type: "revert",
237+
scope: "dotnet",
238+
section: "Fixes -- DotNet",
239+
hidden: false,
240+
},
241+
{
242+
type: "revert",
243+
scope: "python",
244+
section: "Fixes -- Python",
245+
hidden: false,
246+
},
247+
{
248+
type: "revert",
249+
scope: "go",
250+
section: "Fixes -- Go",
251+
hidden: false,
252+
},
253+
{
254+
type: "revert",
255+
scope: "rust",
256+
section: "Fixes -- Rust",
257+
hidden: false,
258+
},
259+
{ type: "style", section: "Miscellaneous", hidden: false },
260+
{ type: "refactor", section: "Miscellaneous", hidden: false },
261+
{ type: "perf", section: "Miscellaneous", hidden: false },
262+
{ type: "test", section: "Miscellaneous", hidden: false },
89263
],
90264
},
91265
},

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ generate_properties_file:
7777
";
7878

7979
setup_semantic_release:
80-
npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git
80+
npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git @semantic-release/exec
8181

8282
run_semantic_release:
8383
npx semantic-release --no-ci

0 commit comments

Comments
 (0)