From 8d155f2ed3822109e19cd16e971c2e51718a775f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Thu, 28 Sep 2023 15:28:38 +0200 Subject: [PATCH] refactor project --- src/branchprotection/BranchProtectionService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 0bf9bb12..45ebadca 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -39,9 +39,10 @@ export class BranchProtectionService { branch: 'main', }) .then((response: any) => { + const data: any = response.json(); console.log( - 'Branch protection is enabled, and reviewers needed are:', - response.data.required_approving_review_count + 'Branch protection is enabled, and the numbers of reviewers are:', + data.required_approving_review_count ); }) .catch((error: any) => {