mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
chore: update changelog script (#35916)
This commit is contained in:
parent
c9145d7051
commit
d30388915f
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user