From 6cfa72fe42840cee59b04466e07f94e10cef962d Mon Sep 17 00:00:00 2001 From: Akshay Iyyadurai Balasundaram Date: Fri, 20 Sep 2024 15:20:20 +0200 Subject: [PATCH] Fix error status check in setupClaCheck.ts --- dist/index.js | 2 +- src/setupClaCheck.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3579e783..42ec940c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -975,7 +975,7 @@ function getCLAFileContentandSHA(committers, committerMap) { result = yield (0, persistence_1.getFileContent)(); } catch (error) { - if (error.status === 404) { + if (error.status === "400") { return createClaFileAndPRComment(committers, committerMap); } else { diff --git a/src/setupClaCheck.ts b/src/setupClaCheck.ts index 3ad95275..643b44d5 100644 --- a/src/setupClaCheck.ts +++ b/src/setupClaCheck.ts @@ -64,7 +64,7 @@ async function getCLAFileContentandSHA( try { result = await getFileContent() } catch (error) { - if (error.status === 404) { + if (error.status === "400") { return createClaFileAndPRComment(committers, committerMap) } else {