Commit 856b531e authored by Tim Neutkens's avatar Tim Neutkens

Remove common PR title prefixes

parent 7a9ee4b9
...@@ -88,6 +88,14 @@ const groupByLabels = async (commits, github) => { ...@@ -88,6 +88,14 @@ const groupByLabels = async (commits, github) => {
return sections return sections
} }
function cleanupPRTitle(title) {
if (title.startsWith('[Docs] ')) {
return title.replace('[Docs] ', '')
}
return title
}
const buildChangelog = (sections, authors) => { const buildChangelog = (sections, authors) => {
let text = '' let text = ''
...@@ -105,7 +113,7 @@ const buildChangelog = (sections, authors) => { ...@@ -105,7 +113,7 @@ const buildChangelog = (sections, authors) => {
for (const change of changes) { for (const change of changes) {
const numberText = change.number != null ? `: #${change.number}` : '' const numberText = change.number != null ? `: #${change.number}` : ''
text += `- ${change.title}${numberText}\n` text += `- ${cleanupPRTitle(change.title)}${numberText}\n`
} }
text += '\n' text += '\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment