minor changelog refinements

This commit is contained in:
pooya parsa 2019-05-22 00:31:45 +04:30
parent 8a490d62ca
commit d811ef7fea

View File

@ -136,14 +136,14 @@ function generateMarkDown(commits) {
for (const scopeName in scopeGroups) { for (const scopeName in scopeGroups) {
markdown += '- `' + scopeName + '`' + '\n' markdown += '- `' + scopeName + '`' + '\n'
for (const commit of scopeGroups[scopeName]) { for (const commit of scopeGroups[scopeName]) {
markdown += ' - ' + commit.references.join(',') + ' ' + commit.message + '\n' markdown += ' - ' + commit.references.join(', ') + ' ' + commit.message.replace(/^(.)/, v => v.toUpperCase()) + '\n'
} }
} }
} }
const authors = sortBy(uniq(commits.map(commit => commit.authorName).filter(an => !isKnownAuthor(an)))) const authors = sortBy(uniq(commits.map(commit => commit.authorName).filter(an => !isKnownAuthor(an))))
if (authors.length) { if (authors.length) {
markdown += '\n\n' + '#### ' + '💖 Thanks to' + '\n\n' markdown += '\n\n' + '#### ' + '💖 Thanks to' + '\n\n'
markdown += authors.map(name => '- ' + name).join('\n') markdown += authors.map(name => '- ' + name).join('\n')
} }