From af7b1cc6c517551e82f30d6d14ce403eab192910 Mon Sep 17 00:00:00 2001 From: hampus-andersson-op Date: Mon, 22 Apr 2024 10:06:04 +0200 Subject: [PATCH] Check where error is thrown --- src/branchprotection/BranchProtectionService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 7a3952a2..377a2903 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -17,6 +17,8 @@ export class BranchProtectionService { branch: 'main', }); + console.log(response); + if (response.data.enforce_admins?.enabled === false) { core.warning('Branch protection can be overridden by admins and is therefore counted as not enabled'); }