Skip to content

Commit

Permalink
refactor project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Sep 28, 2023
1 parent 1ad334d commit e8325d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ export class BranchProtectionService {
})
.then((response: any) => {
console.log('response data ', response.data);
console.log('getting review count ', response.data['required_approving_review_count']);
console.log('only response with json()', response.json());
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
Expand Down

0 comments on commit e8325d7

Please sign in to comment.