BranchProtectionV3RequiredPullRequestReviews

data class BranchProtectionV3RequiredPullRequestReviews(val bypassPullRequestAllowances: BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances? = null, val dismissStaleReviews: Boolean? = null, val dismissalApps: List<String>? = null, val dismissalTeams: List<String>? = null, val dismissalUsers: List<String>? = null, val includeAdmins: Boolean? = null, val requireCodeOwnerReviews: Boolean? = null, val requireLastPushApproval: Boolean? = null, val requiredApprovingReviewCount: Int? = null)

Constructors

constructor(bypassPullRequestAllowances: BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances? = null, dismissStaleReviews: Boolean? = null, dismissalApps: List<String>? = null, dismissalTeams: List<String>? = null, dismissalUsers: List<String>? = null, includeAdmins: Boolean? = null, requireCodeOwnerReviews: Boolean? = null, requireLastPushApproval: Boolean? = null, requiredApprovingReviewCount: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Allow specific users, teams, or apps to bypass pull request requirements. See Bypass Pull Request Allowances below for details.

Link copied to clipboard
val dismissalApps: List<String>? = null

The list of app slugs with dismissal access.

Link copied to clipboard
val dismissalTeams: List<String>? = null

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.

Link copied to clipboard
val dismissalUsers: List<String>? = null

The list of user logins with dismissal access

Link copied to clipboard

Dismiss approved reviews automatically when a new commit is pushed. Defaults to false.

Link copied to clipboard
val includeAdmins: Boolean? = null
Link copied to clipboard

Require an approved review in pull requests including files with a designated code owner. Defaults to false.

Link copied to clipboard

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.

Link copied to clipboard

Require that the most recent push must be approved by someone other than the last pusher. Defaults to false