From 6486356b6a67a23345c3e900158b33d28bd3f875 Mon Sep 17 00:00:00 2001 From: BradBot_1 Date: Thu, 23 Feb 2023 21:59:57 +0000 Subject: [PATCH] FEAT: logging when readme will be changed --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5a0a780..d656cfd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,7 +56,10 @@ for (const forwardData of parsedData) { continue; } const recipient = forward.createRecipient(recipientData.url, recipientData.humanName); - if (recipient.hasOwnProperty("modifyReadme")) recipient.insertToReadme = !!recipientData.modifyReadme; + if (recipient.hasOwnProperty("modifyReadme")) { + recipient.insertToReadme = !!recipientData.modifyReadme; + console.log("Readme will be modified on recipient: " + recipient.humanName||recipient.url); + } if (!recipientData.hasOwnProperty("authors")) { console.error("No authors provided for recipient: " + recipient.humanName||recipient.url); continue;