WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 33cb075

Browse files
committed
🐛 fix: handle empty commit list
## Bug Fixes - Handle case where the commit list is empty
1 parent 8acc015 commit 33cb075

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/conventional-changelog/writer-opts.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function getWriterOpts() {
6161
const commits = unSquash(commit, breakingHeading, context);
6262

6363
if (commits.length === 0) {
64+
if (hasValidType) {
65+
return transformCommit(commit, breakingHeading, context);
66+
}
6467
return null;
6568
}
6669

0 commit comments

Comments
 (0)