BranchProtectionRule Object
A branch protection rule.
Fields
#
branchProtectionRuleConflicts
A list of conflicts matching branches protection rule and other branch protection rules
bypassForcePushAllowances
A list of actors able to force push for this branch protection rule.
bypassPullRequestAllowances
A list of actors able to bypass PRs for this branch protection rule.
dismissesStaleReviews
Will new commits pushed to matching branches dismiss pull request review approvals.
lockAllowsFetchAndMerge
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
Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.
pushAllowances
A list push allowances for this branch protection rule.
requireLastPushApproval
Whether the most recent push must be approved by someone other than the person who pushed it
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
Are approving reviews required to update matching branches.
requiresCodeOwnerReviews
Are reviews from code owners required to update matching branches.
requiresConversationResolution
Are conversations required to be resolved before merging.
requiresDeployments
Does this branch require deployment to specific environments before merging
requiresLinearHistory
Are merge commits prohibited from being pushed to this branch.
requiresStrictStatusChecks
Are branches required to be up to date before merging.
reviewDismissalAllowances
A list review dismissal allowances for this branch protection rule.
Interfaces
#
Also implements Node .
Usages
#
References
#
- Field branchProtectionRule from BranchProtectionRuleConflict
- Field conflictingBranchProtectionRule from BranchProtectionRuleConflict
- Field nodes from BranchProtectionRuleConnection
BranchNamePatternParametersInput
