Skip to content

Commit 2b317f7

Browse files
author
pooya parsa
committed
prevent extra space in changelog
1 parent 5f72ad5 commit 2b317f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function generateMarkDown(commits) {
136136
for (const scopeName in scopeGroups) {
137137
markdown += '- `' + scopeName + '`' + '\n'
138138
for (const commit of scopeGroups[scopeName]) {
139-
markdown += ' - ' + commit.references.join(', ') + ' ' + commit.message.replace(/^(.)/, v => v.toUpperCase()) + '\n'
139+
markdown += ' - ' + commit.references.join(', ') + (commit.references.length ? ' ' : '') + commit.message.replace(/^(.)/, v => v.toUpperCase()) + '\n'
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)