FEAT: logging when readme will be changed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
BradBot_1 2023-02-23 21:59:57 +00:00
parent 4f747c5b79
commit 6486356b6a

View file

@ -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;