From 545324ea46dc5049ff31b30d46a4a16d83d6b6f2 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Thu, 22 Nov 2018 11:20:18 -0800 Subject: [PATCH] fix: added rateLimiter after retrieving pr files --- validation/guide-folder-checks/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/validation/guide-folder-checks/index.js b/validation/guide-folder-checks/index.js index 2669748d9d..8007ddc6f2 100644 --- a/validation/guide-folder-checks/index.js +++ b/validation/guide-folder-checks/index.js @@ -14,6 +14,7 @@ const guideFolderChecks = async (number, prFiles, user) => { const response = await fetch(fileUrl); const fileContent = await response.text(); newErrors = checkPath(fullPath, fileContent); + await rateLimiter(+process.env.RATELIMIT_INTERVAL | 1500); } if (newErrors) { prErrors = prErrors.concat(newErrors);