Skip to content

Commit

Permalink
Check where error is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
hampus-andersson-op committed Apr 22, 2024
1 parent dc0e35d commit af7b1cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit af7b1cc

Please sign in to comment.