Branch Protection Restrict Push
data class BranchProtectionRestrictPush(val blocksCreations: Boolean? = null, val pushAllowances: List<String>? = null)
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
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.