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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user