Skip to content

Commit 1159938

Browse files
committed
Fix: the changelog commits without body
1 parent 656ead8 commit 1159938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers/updateChangelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const writeToFile = (commits = [], version, exists) => {
2222
commits.forEach((commithash) => {
2323
const commitInfo = gitCommitInfo({ commit: commithash, cwd });
2424

25-
stream.write(`* ${commitInfo.shortHash} ${commitInfo.message} (${commitInfo.author})\n`);
25+
stream.write(`* ${commitInfo.shortHash} ${commitInfo.message.split('\n')[0]} (${commitInfo.author})\n`);
2626
});
2727

2828
stream.write(changelogData);

0 commit comments

Comments
 (0)