Skip to content

Commit

Permalink
refactor project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Oct 3, 2023
1 parent 7bfd846 commit 9220232
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ export class BranchProtectionService {

core.exportVariable('numberOfReviewers', numberOfReviewers);
} catch (error) {
console.log('error', error);
core.warning('Error getting branch protection!');
console.log('Error:', error.message);
if (error.status === 403) {
core.exportVariable('numberOfReviewers', 0);
}
}
}
}

0 comments on commit 9220232

Please sign in to comment.