Remove common PR title prefixes
This commit is contained in:
parent
7a9ee4b9e5
commit
856b531e47
1 changed files with 9 additions and 1 deletions
10
release.js
10
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'
|
||||
|
|
Loading…
Reference in a new issue