Remove common PR title prefixes

This commit is contained in:
Tim Neutkens 2020-08-07 09:34:50 +02:00
parent 7a9ee4b9e5
commit 856b531e47

View file

@ -88,6 +88,14 @@ const groupByLabels = async (commits, github) => {
return sections
}
function cleanupPRTitle(title) {
if (title.startsWith('[Docs] ')) {
return title.replace('[Docs] ', '')
}
return title
}
const buildChangelog = (sections, authors) => {
let text = ''
@ -105,7 +113,7 @@ const buildChangelog = (sections, authors) => {
for (const change of changes) {
const numberText = change.number != null ? `: #${change.number}` : ''
text += `- ${change.title}${numberText}\n`
text += `- ${cleanupPRTitle(change.title)}${numberText}\n`
}
text += '\n'