diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 7ad41a7e..2f24ba1e 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -39,16 +39,9 @@ export class BranchProtectionService { branch: 'main', }) .then((response: any) => { - console.log('response data ', response.data); - console.log( - 'getting review count ', - response.data.required_pull_request_reviews['required_approving_review_count'] - ); - const data: any = response.json(); - console.log( 'Branch protection is enabled, and the numbers of reviewers are:', - data.required_approving_review_count + response.data.required_pull_request_reviews?.['required_approving_review_count'] ); }) .catch((error: any) => {