2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-23 20:40:40 +03:00

chore(ci): improved logging for the contributors list generator;

This commit is contained in:
Dmitriy Mozgovoy
2022-12-20 23:03:27 +02:00
committed by GitHub
parent 46085e6ffc
commit 341f735297
+11 -3
View File
@@ -28,10 +28,18 @@ const injectContributors = async (infile, injector) => {
tag = nextTag; tag = nextTag;
index = offset + match.length; index = offset + match.length;
if(currentTag && !hasContributorsSection) { if(currentTag) {
console.log(`Adding contributors for ${currentTag}`); if (hasContributorsSection) {
console.log(`[${currentTag}]: found contribution section`);
} else {
const section = await injector(currentTag);
return (await injector(currentTag)) + match; console.log(`[${currentTag}]: contribution section not found. Adding...`);
console.log(section);
return section + match;
}
} }
return match; return match;