mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
chore(ci): fixed error in generating changelog with unnecessary spaces; (#5455)
This commit is contained in:
@@ -46,6 +46,10 @@ const injectSection = async (name, contributorsRE, injector, infile = '../CHANGE
|
|||||||
|
|
||||||
const section = await injector(target);
|
const section = await injector(target);
|
||||||
|
|
||||||
|
if (!section) {
|
||||||
|
return match;
|
||||||
|
}
|
||||||
|
|
||||||
console.log(colorize()`\nRENDERED SECTION [${name}] for [${currentTag}]:`);
|
console.log(colorize()`\nRENDERED SECTION [${name}] for [${currentTag}]:`);
|
||||||
console.log('-------------BEGIN--------------\n');
|
console.log('-------------BEGIN--------------\n');
|
||||||
console.log(section);
|
console.log(section);
|
||||||
@@ -64,7 +68,7 @@ const injectSection = async (name, contributorsRE, injector, infile = '../CHANGE
|
|||||||
await injectSection(
|
await injectSection(
|
||||||
'PRs',
|
'PRs',
|
||||||
/^\s*### PRs/mi,
|
/^\s*### PRs/mi,
|
||||||
(tag) => !tag && renderPRsList(tag, PRS_TEMPLATE, {awesome_threshold: 5, comments_threshold: 7}),
|
(tag) => tag ? '' : renderPRsList(tag, PRS_TEMPLATE, {awesome_threshold: 5, comments_threshold: 7}),
|
||||||
);
|
);
|
||||||
|
|
||||||
await injectSection(
|
await injectSection(
|
||||||
|
|||||||
Reference in New Issue
Block a user