Skip to content

Commit 0ab7f98

Browse files
committed
change handling of array
1 parent e8ffc35 commit 0ab7f98

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function parseChangelogFromPrDescriptions(prDescriptions: string[]): Changelog {
186186
}
187187

188188
return {
189-
added: changelog_new || undefined,
190-
fixed: changelog_fixed || undefined
189+
added: changelog_new.length > 0 ? changelog_new : undefined,
190+
fixed: changelog_fixed.length > 0 ? changelog_fixed : undefined
191191
}
192192
}

0 commit comments

Comments
 (0)