BranchProtectionRequiredPullRequestReview

data class BranchProtectionRequiredPullRequestReview(val dismissStaleReviews: Boolean? = null, val dismissalRestrictions: List<String>? = null, val pullRequestBypassers: List<String>? = null, val requireCodeOwnerReviews: Boolean? = null, val requireLastPushApproval: Boolean? = null, val requiredApprovingReviewCount: Int? = null, val restrictDismissals: Boolean? = null)

Constructors

constructor(dismissStaleReviews: Boolean? = null, dismissalRestrictions: List<String>? = null, pullRequestBypassers: List<String>? = null, requireCodeOwnerReviews: Boolean? = null, requireLastPushApproval: Boolean? = null, requiredApprovingReviewCount: Int? = null, restrictDismissals: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The list of actor Names/IDs with dismissal access. If not empty, restrict_dismissals is ignored. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.

Link copied to clipboard

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

Link copied to clipboard

The list of actor Names/IDs that are allowed to bypass pull request requirements. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.

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. (https://developer.github.com/v3/repos/branches/#parameters-1) 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

Link copied to clipboard

Restrict pull request review dismissals.