Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove common PR title prefixes
- Loading branch information
Showing
with
9 additions
and
1 deletion.
-
+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' |
|
|
|