Branch Protection: Require Pull Request Approving Review Count
The following rule type is available for requiring a minimum number of approving reviews on pull requests.
stacklok/branch_protection_require_pull_request_approving_review_count
- Require a certain number of approving reviews before merging
Ensure that the appropriate setting is enabled for the branch protection rule.
Each pull request must have a certain number of approving reviews before it can be merged into a matching branch.
For more information, see https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule
Entity
repository
Type
stacklok/branch_protection_require_pull_request_approving_review_count
Rule parameters
The stacklok/branch_protection_require_pull_request_approving_review_count
rule supports the following parameters:
branch (string)
- The name of the branch to check. If left empty, the default branch will be used.
Rule definition options
The stacklok/branch_protection_require_pull_request_approving_review_count
rule supports the following options:
required_approving_review_count (integer)
- Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.