Compare commits

..

No commits in common. "6486356b6a67a23345c3e900158b33d28bd3f875" and "17bd5291150d7a8a364a3eb43bb0c6705fda74d9" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View file

@ -88,7 +88,6 @@ export async function insertToReadme(projectName: string, projectLink: string, o
var data: string = `> This was cloned from [${projectName}](${projectLink})\n`; var data: string = `> This was cloned from [${projectName}](${projectLink})\n`;
if (existsSync(out + "README.md")) data = data + readFileSync(out + "README.md").toString(); if (existsSync(out + "README.md")) data = data + readFileSync(out + "README.md").toString();
writeFileSync(out + "README.md", data); writeFileSync(out + "README.md", data);
await git.add("README.md")
await git.commit("Modify README.md", "README.md", { await git.commit("Modify README.md", "README.md", {
"--author": '"BradBot1 <BradBot_1@email.com>"' "--author": '"BradBot1 <BradBot_1@email.com>"'
}); });

View file

@ -56,10 +56,7 @@ for (const forwardData of parsedData) {
continue; continue;
} }
const recipient = forward.createRecipient(recipientData.url, recipientData.humanName); const recipient = forward.createRecipient(recipientData.url, recipientData.humanName);
if (recipient.hasOwnProperty("modifyReadme")) { if (recipient.hasOwnProperty("modifyReadme")) recipient.insertToReadme = !!recipientData.modifyReadme;
recipient.insertToReadme = !!recipientData.modifyReadme;
console.log("Readme will be modified on recipient: " + recipient.humanName||recipient.url);
}
if (!recipientData.hasOwnProperty("authors")) { if (!recipientData.hasOwnProperty("authors")) {
console.error("No authors provided for recipient: " + recipient.humanName||recipient.url); console.error("No authors provided for recipient: " + recipient.humanName||recipient.url);
continue; continue;