Skip to content

Commit ae876dd

Browse files
committed
fix(conventional-changelog): set breakingChanges to false if none exist
1 parent 676b581 commit ae876dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/release-it/conventional-changelog-writer-options.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export const transform = async (commitOriginal, context) => {
185185
// a '!' but no 'BREAKING CHANGE' in body:
186186
addBreakingChanges(commit, context);
187187

188+
if (context.breakingChanges.length === 0) {
189+
context.breakingChanges = false;
190+
}
191+
188192
context.hasNotableChanges = true;
189193
context.notableChangesTitle = "👀 Notable Changes";
190194
context.notableChanges = context.notableChanges || [];

0 commit comments

Comments
 (0)