Branch Protection V3Required Pull Request Reviews Args
Constructors
Properties
Allow specific users, teams, or apps to bypass pull request requirements. See Bypass Pull Request Allowances below for details.
The list of app slugs with dismissal access.
The list of team slugs with dismissal access. Always use slug
of the team, not its name. Each team already has to have access to the repository.
The list of user logins with dismissal access
Dismiss approved reviews automatically when a new commit is pushed. Defaults to false
.
Require an approved review in pull requests including files with a designated code owner. Defaults to false
.
Require x number of approvals to satisfy branch protection requirements. If this is specified it must be a number between 0-6. This requirement matches GitHub's API, see the upstream documentation for more information.