2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

chore(ci): fixed error in generating changelog with unnecessary spaces; (#5455)

This commit is contained in:
Dmitriy Mozgovoy
2023-01-09 17:10:14 +02:00
committed by GitHub
parent e2a1e280f6
commit 477c71427d
+5 -1
View File
@@ -46,6 +46,10 @@ const injectSection = async (name, contributorsRE, injector, infile = '../CHANGE
const section = await injector(target);
if (!section) {
return match;
}
console.log(colorize()`\nRENDERED SECTION [${name}] for [${currentTag}]:`);
console.log('-------------BEGIN--------------\n');
console.log(section);
@@ -64,7 +68,7 @@ const injectSection = async (name, contributorsRE, injector, infile = '../CHANGE
await injectSection(
'PRs',
/^\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(