From 3c0646c17a6dc6e3b7a724f28c71028ec5604c2e Mon Sep 17 00:00:00 2001 From: gitcommitshow <56937085+gitcommitshow@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:58:39 +0530 Subject: [PATCH] fix: replace cache value with the boolean output --- src/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.js b/src/helpers.js index abc44a3..731cba8 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -118,7 +118,7 @@ async function isExternalContribution(octokit, pullRequest) { //TODO: Handle failure in checking permissions for the user const deterministicPermissionCheck = await isAllowedToWriteToTheRepo(octokit, username, owner, repo); pullRequest.isExternalContribution = deterministicPermissionCheck; - storage.cache.set(pullRequest, username, "contribution", "external", owner, repo); + storage.cache.set(deterministicPermissionCheck, username, "contribution", "external", owner, repo); return deterministicPermissionCheck; }