Magidoc

BranchProtectionRule
Object

A branch protection rule.

Fields

#

allowsDeletions

Non-null

Can this branch be deleted.

allowsForcePushes

Non-null

Are force pushes allowed on this branch.

blocksCreations

Non-null

Is branch creation a protected operation.

branchProtectionRuleConflicts

Non-null

A list of conflicts matching branches protection rule and other branch protection rules

bypassForcePushAllowances

Non-null

A list of actors able to force push for this branch protection rule.

bypassPullRequestAllowances

Non-null

A list of actors able to bypass PRs for this branch protection rule.

creator

The actor who created this branch protection rule.

databaseId

Identifies the primary key from the database.

dismissesStaleReviews

Non-null

Will new commits pushed to matching branches dismiss pull request review approvals.

id

ID !
Non-null

The Node ID of the BranchProtectionRule object

isAdminEnforced

Non-null

Can admins override branch protection.

lockAllowsFetchAndMerge

Non-null

Whether users can pull changes from upstream when the branch is locked. Set to true to allow fork syncing. Set to false to prevent fork syncing.

lockBranch

Non-null

Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.

matchingRefs

Non-null

Repository refs that are protected by this rule

pattern

Non-null

Identifies the protection rule pattern.

pushAllowances

Non-null

A list push allowances for this branch protection rule.

repository

The repository associated with this branch protection rule.

requireLastPushApproval

Non-null

Whether the most recent push must be approved by someone other than the person who pushed it

requiredApprovingReviewCount

Number of approving reviews required to update matching branches.

requiredDeploymentEnvironments

List of required deployment environments that must be deployed successfully to update matching branches

requiredStatusCheckContexts

List of required status check contexts that must pass for commits to be accepted to matching branches.

requiredStatusChecks

List of required status checks that must pass for commits to be accepted to matching branches.

requiresApprovingReviews

Non-null

Are approving reviews required to update matching branches.

requiresCodeOwnerReviews

Non-null

Are reviews from code owners required to update matching branches.

requiresCommitSignatures

Non-null

Are commits required to be signed.

requiresConversationResolution

Non-null

Are conversations required to be resolved before merging.

requiresDeployments

Non-null

Does this branch require deployment to specific environments before merging

requiresLinearHistory

Non-null

Are merge commits prohibited from being pushed to this branch.

requiresStatusChecks

Non-null

Are status checks required to update matching branches.

requiresStrictStatusChecks

Non-null

Are branches required to be up to date before merging.

restrictsPushes

Non-null

Is pushing to matching branches restricted.

restrictsReviewDismissals

Non-null

Is dismissal of pull request reviews restricted.

reviewDismissalAllowances

Non-null

A list review dismissal allowances for this branch protection rule.

Interfaces

#

Also implements Node .

Usages

#

References

#