Skip to content
Permalink
Browse files

Remove common PR title prefixes

  • Loading branch information
timneutkens committed Aug 7, 2020
1 parent 7a9ee4b commit 856b531e4711dc3ff9f3db75f1740097f108ac94
Showing with 9 additions and 1 deletion.
  1. +9 −1 release.js
@@ -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'

0 comments on commit 856b531

Please sign in to comment.