Skip to content

Commit 856b531

Browse files
committed
Remove common PR title prefixes
1 parent 7a9ee4b commit 856b531

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

release.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ const groupByLabels = async (commits, github) => {
8888
return sections
8989
}
9090

91+
function cleanupPRTitle(title) {
92+
if (title.startsWith('[Docs] ')) {
93+
return title.replace('[Docs] ', '')
94+
}
95+
96+
return title
97+
}
98+
9199
const buildChangelog = (sections, authors) => {
92100
let text = ''
93101

@@ -105,7 +113,7 @@ const buildChangelog = (sections, authors) => {
105113
for (const change of changes) {
106114
const numberText = change.number != null ? `: #${change.number}` : ''
107115

108-
text += `- ${change.title}${numberText}\n`
116+
text += `- ${cleanupPRTitle(change.title)}${numberText}\n`
109117
}
110118

111119
text += '\n'

0 commit comments

Comments
 (0)