From 341f73529752768f35ab831d9427be5803a095f3 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Tue, 20 Dec 2022 23:03:27 +0200 Subject: [PATCH] chore(ci): improved logging for the contributors list generator; --- bin/injectContributorsList.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/injectContributorsList.js b/bin/injectContributorsList.js index 182c0aeb18..27031196f0 100644 --- a/bin/injectContributorsList.js +++ b/bin/injectContributorsList.js @@ -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;