From 00bed92452ab987671c826dd9954d6f3c886444f Mon Sep 17 00:00:00 2001 From: Edward Badel Date: Sun, 27 Jun 2021 22:56:55 -0400 Subject: [PATCH] Added default contributors --- gulp/contributors.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gulp/contributors.js b/gulp/contributors.js index 8bf71c83..6bd22308 100644 --- a/gulp/contributors.js +++ b/gulp/contributors.js @@ -134,6 +134,12 @@ async function downloadAllPrs() { } async function tryToUpdateContributors() { + if (personalAccessToken === "PUT TOKEN HERE") { + console.log("A github token was not provided, writing default contributors.json"); + await writeJSONFile([], []); + return; + } + if (!(await shouldDownloadPRs())) { console.log("Not updating contributors to prevent github API from rate-limiting this computer"); console.log("If you wish to force a contributors update, use contributors.build.force");