Skip to content

Commit

Permalink
chore(ci): improved logging for the contributors list generator;
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Dec 20, 2022
1 parent 46085e6 commit 341f735
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions bin/injectContributorsList.js
Expand Up @@ -28,10 +28,18 @@ const injectContributors = async (infile, injector) => {
tag = nextTag;
index = offset + match.length;

if(currentTag && !hasContributorsSection) {
console.log(`Adding contributors for ${currentTag}`);
if(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;
Expand Down

0 comments on commit 341f735

Please sign in to comment.