Skip to content

Commit b1469ea

Browse files
committed
ci: sanitize breaking section in release notes
1 parent 1b2b6a1 commit b1469ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/releaser/src/utils/generateReleaseNotes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export const generateReleaseNotes = async (args: Args = {}): Promise<ChangelogRe
107107
const sections = conventionalCommits.reduce(
108108
(sections, c) => {
109109
if (c.isBreaking) {
110+
if (!sections.breaking) {
111+
sections.breaking = []
112+
}
110113
sections.breaking.push(c)
111114
}
112115

0 commit comments

Comments
 (0)