Branch Protection: Require Pull Request Last Push Approval
The following rule type is available for requiring a review from code owners.
stacklok/branch_protection_require_pull_request_last_push_approval
- Require that the most recent push to a branch be approved by someone other than the person who pushed it
Ensure that the appropriate setting is enabled for the branch protection rule.
The most recent push to a branch must be approved by someone other than the person who pushed it.
For more information, see the GitHub documentation.
Entity
repository
Type
stacklok/branch_protection_require_pull_request_last_push_approval
Rule parameters
The stacklok/branch_protection_require_pull_request_last_push_approval
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_last_push_approval
rule
supports the following options:
require_last_push_approval (boolean)
- Whether the most recent push must be approved by someone other than the person who pushed it.