We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
whatBump
1 parent d99f6fc commit 90dc51dCopy full SHA for 90dc51d
.release-it.cjs
@@ -169,13 +169,16 @@ module.exports = () => {
169
},
170
171
recommendedBump: true,
172
- whatBump: (commits) => {
+ whatBump: commits => {
173
let isMajor = false;
174
let isMinor = false;
175
let isPatch = false;
176
177
for (const commit of commits) {
178
- const hasBreaking = Boolean(commit.breaking) || (commit.notes && commit.notes.some(n => /BREAKING[ -]CHANGE/i.test(n.title || n.text || "")));
+ const hasBreaking =
179
+ Boolean(commit.breaking) ||
180
+ (commit.notes &&
181
+ commit.notes.some(n => /BREAKING[ -]CHANGE/i.test(n.title || n.text || "")));
182
if (hasBreaking) {
183
isMajor = true;
184
break;
0 commit comments