mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix(release): optimize release script
This commit is contained in:
parent
081ba44ae8
commit
ae02c86378
@ -252,6 +252,10 @@ async function generateChangelog() {
|
|||||||
cn: '插件',
|
cn: '插件',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
const referenceLocale = {
|
||||||
|
en: 'Reference: ',
|
||||||
|
cn: '参考文档:',
|
||||||
|
};
|
||||||
|
|
||||||
const generate = (changelogs, lang) => {
|
const generate = (changelogs, lang) => {
|
||||||
let result = '';
|
let result = '';
|
||||||
@ -270,7 +274,7 @@ async function generateChangelog() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const pr = pro ? '' : ` ([#${number}](https://github.com/nocobase/nocobase/pull/${number}))`;
|
const pr = pro ? '' : ` ([#${number}](https://github.com/nocobase/nocobase/pull/${number}))`;
|
||||||
const doc = docTitle && docLink ? `Reference: [${docTitle}](${docLink})` : '';
|
const doc = docTitle && docLink ? `${referenceLocale[lang]}[${docTitle}](${docLink})` : '';
|
||||||
lists.push(`${description}${pr} by @${author}\n${doc}`);
|
lists.push(`${description}${pr} by @${author}\n${doc}`);
|
||||||
}
|
}
|
||||||
if (!lists.length) {
|
if (!lists.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user