BranchProtectionRestrictPush

data class BranchProtectionRestrictPush(val blocksCreations: Boolean? = null, val pushAllowances: List<String>? = null)

Constructors

Link copied to clipboard
constructor(blocksCreations: Boolean? = null, pushAllowances: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Boolean, setting this to false allows people, teams, or apps to create new branches matching this rule. Defaults to true.

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

A list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams. Organization administrators, repository administrators, and users with the Maintain role on the repository can always push when all other requirements have passed.