chore: update changelog script (#35916)

This commit is contained in:
xrkffgg 2022-06-06 14:32:15 +08:00 committed by GitHub
parent c9145d7051
commit d30388915f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ const MAINTAINERS = [
'Rustin-Liu',
'fireairforce',
'kerm1it',
'MadCcc',
'madccc',
].map(author => author.toLowerCase());
const cwd = process.cwd();
@ -47,7 +47,7 @@ function getDescription(entity) {
}
const descEle = entity.element.find('td:last');
let htmlContent = descEle.html();
htmlContent = htmlContent.replace(/<code>([^<]*)<\/code>/g, '`$1`');
htmlContent = htmlContent.replace(/<code class="notranslate">([^<]*)<\/code>/g, '`$1`');
return htmlContent.trim();
}
@ -179,6 +179,9 @@ async function printLog() {
if (str.toLowerCase().includes('fix') || str.includes('修复')) {
icon = '🐞';
}
if (str.toLowerCase().includes('feat')) {
icon = '🆕';
}
let authorText = '';
if (!MAINTAINERS.includes(author.toLowerCase())) {