BranchProtectionRule
A branch protection rule.
Implements
Connections
BranchProtectionRuleConflictConnection!)
A list of conflicts matching branches protection rule and other branch protection rules
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
RefConnection!)
Repository refs that are protected by this rule
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
PushAllowanceConnection!)
A list push allowances for this branch protection rule.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
ReviewDismissalAllowanceConnection!)
A list review dismissal allowances for this branch protection rule.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
Fields
Actor)
The actor who created this branch protection rule.
Int)
Identifies the primary key from the database.
Boolean!)
Will new commits pushed to matching branches dismiss pull request review approvals.
ID!)
Boolean!)
Can admins overwrite branch protection.
String!)
Identifies the protection rule pattern.
Repository)
The repository associated with this branch protection rule.
Int)
Number of approving reviews required to update matching branches.
[String])
List of required status check contexts that must pass for commits to be accepted to matching branches.
Boolean!)
Are approving reviews required to update matching branches.
Boolean!)
Are reviews from code owners required to update matching branches.
Boolean!)
Are commits required to be signed.
Boolean!)
Are status checks required to update matching branches.
Boolean!)
Are branches required to be up to date before merging.
Boolean!)
Is pushing to matching branches restricted.
Boolean!)
Is dismissal of pull request reviews restricted.
-
Overview
-
Query
-
Mutations
- acceptEnterpriseAdministratorInvitation
- acceptTopicSuggestion
- addAssigneesToAssignable
- addComment
- addLabelsToLabelable
- addProjectCard
- addProjectColumn
- addPullRequestReview
- addPullRequestReviewComment
- addPullRequestReviewThread
- addReaction
- addStar
- archiveRepository
- cancelEnterpriseAdminInvitation
- changeUserStatus
- clearLabelsFromLabelable
- cloneProject
- cloneTemplateRepository
- closeIssue
- closePullRequest
- convertProjectCardNoteToIssue
- createBranchProtectionRule
- createCheckRun
- createCheckSuite
- createContentAttachment
- createDeployment
- createDeploymentStatus
- createEnterpriseOrganization
- createIssue
- createLabel
- createProject
- createPullRequest
- createRef
- createRepository
- createTeamDiscussion
- createTeamDiscussionComment
- declineTopicSuggestion
- deleteBranchProtectionRule
- deleteIssue
- deleteIssueComment
- deleteLabel
- deletePackageVersion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deletePullRequestReview
- deletePullRequestReviewComment
- deleteRef
- deleteTeamDiscussion
- deleteTeamDiscussionComment
- dismissPullRequestReview
- followUser
- importProject
- inviteEnterpriseAdmin
- linkRepositoryToProject
- lockLockable
- markPullRequestReadyForReview
- mergeBranch
- mergePullRequest
- minimizeComment
- moveProjectCard
- moveProjectColumn
- pinIssue
- regenerateEnterpriseIdentityProviderRecoveryCodes
- removeAssigneesFromAssignable
- removeEnterpriseAdmin
- removeEnterpriseOrganization
- removeLabelsFromLabelable
- removeOutsideCollaborator
- removeReaction
- removeStar
- reopenIssue
- reopenPullRequest
- requestReviews
- rerequestCheckSuite
- resolveReviewThread
- submitPullRequestReview
- transferIssue
- unarchiveRepository
- unfollowUser
- unlinkRepositoryFromProject
- unlockLockable
- unmarkIssueAsDuplicate
- unminimizeComment
- unpinIssue
- unresolveReviewThread
- updateBranchProtectionRule
- updateCheckRun
- updateCheckSuitePreferences
- updateEnterpriseActionExecutionCapabilitySetting
- updateEnterpriseAdministratorRole
- updateEnterpriseAllowPrivateRepositoryForkingSetting
- updateEnterpriseDefaultRepositoryPermissionSetting
- updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
- updateEnterpriseMembersCanCreateRepositoriesSetting
- updateEnterpriseMembersCanDeleteIssuesSetting
- updateEnterpriseMembersCanDeleteRepositoriesSetting
- updateEnterpriseMembersCanInviteCollaboratorsSetting
- updateEnterpriseMembersCanMakePurchasesSetting
- updateEnterpriseMembersCanUpdateProtectedBranchesSetting
- updateEnterpriseMembersCanViewDependencyInsightsSetting
- updateEnterpriseOrganizationProjectsSetting
- updateEnterpriseProfile
- updateEnterpriseRepositoryProjectsSetting
- updateEnterpriseTeamDiscussionsSetting
- updateEnterpriseTwoFactorAuthenticationRequiredSetting
- updateIssue
- updateIssueComment
- updateLabel
- updateProject
- updateProjectCard
- updateProjectColumn
- updatePullRequest
- updatePullRequestReview
- updatePullRequestReviewComment
- updateRef
- updateRefs
- updateRepository
- updateSubscription
- updateTeamDiscussion
- updateTeamDiscussionComment
- updateTeamReviewAssignment
- updateTopics
-
Objects
- ActorLocation
- AddedToProjectEvent
- App
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- Blame
- BlameRange
- Blob
- Bot
- BranchProtectionRule
- BranchProtectionRuleConflict
- CheckAnnotation
- CheckAnnotationPosition
- CheckAnnotationSpan
- CheckRun
- CheckSuite
- ClosedEvent
- CodeOfConduct
- CommentDeletedEvent
- Commit
- CommitComment
- CommitCommentThread
- CommitContributionsByRepository
- ContentAttachment
- ContentReference
- ContributionCalendar
- ContributionCalendarDay
- ContributionCalendarMonth
- ContributionCalendarWeek
- ContributionsCollection
- ConvertedNoteToIssueEvent
- CreatedCommitContribution
- CreatedIssueContribution
- CreatedPullRequestContribution
- CreatedPullRequestReviewContribution
- CreatedRepositoryContribution
- CrossReferencedEvent
- DemilestonedEvent
- DependencyGraphDependency
- DependencyGraphManifest
- DeployKey
- DeployedEvent
- Deployment
- DeploymentEnvironmentChangedEvent
- DeploymentStatus
- Enterprise
- EnterpriseAdministratorInvitation
- EnterpriseBillingInfo
- EnterpriseIdentityProvider
- EnterpriseOwnerInfo
- EnterpriseRepositoryInfo
- EnterpriseServerInstallation
- EnterpriseServerUserAccount
- EnterpriseServerUserAccountEmail
- EnterpriseServerUserAccountsUpload
- EnterpriseUserAccount
- ExternalIdentity
- ExternalIdentitySamlAttributes
- ExternalIdentityScimAttributes
- FundingLink
- GenericHovercardContext
- Gist
- GistComment
- GistFile
- GitActor
- GitHubMetadata
- GpgSignature
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- Hovercard
- Issue
- IssueComment
- IssueContributionsByRepository
- JoinedGitHubContribution
- Label
- LabeledEvent
- Language
- License
- LicenseRule
- LockedEvent
- Mannequin
- MarkedAsDuplicateEvent
- MarketplaceCategory
- MarketplaceListing
- MembersCanDeleteReposClearAuditEntry
- MembersCanDeleteReposDisableAuditEntry
- MembersCanDeleteReposEnableAuditEntry
- MentionedEvent
- MergedEvent
- Milestone
- MilestonedEvent
- MovedColumnsInProjectEvent
- OauthApplicationCreateAuditEntry
- OrgAddBillingManagerAuditEntry
- OrgAddMemberAuditEntry
- OrgBlockUserAuditEntry
- OrgConfigDisableCollaboratorsOnlyAuditEntry
- OrgConfigEnableCollaboratorsOnlyAuditEntry
- OrgCreateAuditEntry
- OrgDisableOauthAppRestrictionsAuditEntry
- OrgDisableSamlAuditEntry
- OrgDisableTwoFactorRequirementAuditEntry
- OrgEnableOauthAppRestrictionsAuditEntry
- OrgEnableSamlAuditEntry
- OrgEnableTwoFactorRequirementAuditEntry
- OrgInviteMemberAuditEntry
- OrgInviteToBusinessAuditEntry
- OrgOauthAppAccessApprovedAuditEntry
- OrgOauthAppAccessDeniedAuditEntry
- OrgOauthAppAccessRequestedAuditEntry
- OrgRemoveBillingManagerAuditEntry
- OrgRemoveMemberAuditEntry
- OrgRemoveOutsideCollaboratorAuditEntry
- OrgRestoreMemberAuditEntry
- OrgRestoreMemberMembershipOrganizationAuditEntryData
- OrgRestoreMemberMembershipRepositoryAuditEntryData
- OrgRestoreMemberMembershipTeamAuditEntryData
- OrgUnblockUserAuditEntry
- OrgUpdateDefaultRepositoryPermissionAuditEntry
- OrgUpdateMemberAuditEntry
- OrgUpdateMemberRepositoryCreationPermissionAuditEntry
- OrgUpdateMemberRepositoryInvitationPermissionAuditEntry
- Organization
- OrganizationIdentityProvider
- OrganizationInvitation
- OrganizationTeamsHovercardContext
- OrganizationsHovercardContext
- Package
- PackageFile
- PackageStatistics
- PackageTag
- PackageVersion
- PackageVersionStatistics
- PageInfo
- PermissionSource
- PinnedEvent
- PinnedIssue
- PrivateRepositoryForkingDisableAuditEntry
- PrivateRepositoryForkingEnableAuditEntry
- ProfileItemShowcase
- Project
- ProjectCard
- ProjectColumn
- PublicKey
- PullRequest
- PullRequestChangedFile
- PullRequestCommit
- PullRequestCommitCommentThread
- PullRequestContributionsByRepository
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewContributionsByRepository
- PullRequestReviewThread
- PullRequestRevisionMarker
- Push
- PushAllowance
- RateLimit
- Reaction
- ReactionGroup
- ReadyForReviewEvent
- Ref
- ReferencedEvent
- RegistryPackage
- RegistryPackageDependency
- RegistryPackageFile
- RegistryPackageStatistics
- RegistryPackageTag
- RegistryPackageVersion
- RegistryPackageVersionStatistics
- Release
- ReleaseAsset
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- RepoAccessAuditEntry
- RepoAddMemberAuditEntry
- RepoAddTopicAuditEntry
- RepoArchivedAuditEntry
- RepoChangeMergeSettingAuditEntry
- RepoConfigDisableAnonymousGitAccessAuditEntry
- RepoConfigDisableCollaboratorsOnlyAuditEntry
- RepoConfigDisableContributorsOnlyAuditEntry
- RepoConfigDisableSockpuppetDisallowedAuditEntry
- RepoConfigEnableAnonymousGitAccessAuditEntry
- RepoConfigEnableCollaboratorsOnlyAuditEntry
- RepoConfigEnableContributorsOnlyAuditEntry
- RepoConfigEnableSockpuppetDisallowedAuditEntry
- RepoConfigLockAnonymousGitAccessAuditEntry
- RepoConfigUnlockAnonymousGitAccessAuditEntry
- RepoCreateAuditEntry
- RepoDestroyAuditEntry
- RepoRemoveMemberAuditEntry
- RepoRemoveTopicAuditEntry
- Repository
- RepositoryInvitation
- RepositoryTopic
- RepositoryVisibilityChangeDisableAuditEntry
- RepositoryVisibilityChangeEnableAuditEntry
- RepositoryVulnerabilityAlert
- RestrictedContribution
- ReviewDismissalAllowance
- ReviewDismissedEvent
- ReviewRequest
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- ReviewStatusHovercardContext
- SavedReply
- SecurityAdvisory
- SecurityAdvisoryIdentifier
- SecurityAdvisoryPackage
- SecurityAdvisoryPackageVersion
- SecurityAdvisoryReference
- SecurityVulnerability
- SmimeSignature
- SponsorsListing
- SponsorsTier
- SponsorsTierAdminInfo
- Sponsorship
- Status
- StatusContext
- SubscribedEvent
- SuggestedReviewer
- Tag
- Team
- TeamAddMemberAuditEntry
- TeamAddRepositoryAuditEntry
- TeamChangeParentTeamAuditEntry
- TeamDiscussion
- TeamDiscussionComment
- TeamRemoveMemberAuditEntry
- TeamRemoveRepositoryAuditEntry
- TextMatch
- TextMatchHighlight
- Topic
- TransferredEvent
- Tree
- TreeEntry
- UnassignedEvent
- UnknownSignature
- UnlabeledEvent
- UnlockedEvent
- UnpinnedEvent
- UnsubscribedEvent
- User
- UserBlockedEvent
- UserContentEdit
- UserStatus
- ViewerHovercardContext
-
Interfaces
- Actor
- Assignable
- AuditEntry
- Closable
- Comment
- Contribution
- Deletable
- EnterpriseAuditEntryData
- GitObject
- GitSignature
- HovercardContext
- Labelable
- Lockable
- MemberStatusable
- Minimizable
- Node
- OauthApplicationAuditEntryData
- OrganizationAuditEntryData
- PackageOwner
- ProfileOwner
- ProjectOwner
- Reactable
- RegistryPackageOwner
- RegistryPackageSearch
- RepositoryAuditEntryData
- RepositoryInfo
- RepositoryNode
- RepositoryOwner
- Sponsorable
- Starrable
- Subscribable
- TeamAuditEntryData
- TopicAuditEntryData
- UniformResourceLocatable
- Updatable
- UpdatableComment
-
Enums
- ActionExecutionCapabilitySetting
- AuditLogOrderField
- CheckAnnotationLevel
- CheckConclusionState
- CheckRunType
- CheckStatusState
- CollaboratorAffiliation
- CommentAuthorAssociation
- CommentCannotUpdateReason
- CommitContributionOrderField
- ContributionOrderField
- DefaultRepositoryPermissionField
- DeploymentOrderField
- DeploymentState
- DeploymentStatusState
- DiffSide
- EnterpriseAdministratorInvitationOrderField
- EnterpriseAdministratorRole
- EnterpriseDefaultRepositoryPermissionSettingValue
- EnterpriseEnabledDisabledSettingValue
- EnterpriseEnabledSettingValue
- EnterpriseMemberOrderField
- EnterpriseMembersCanCreateRepositoriesSettingValue
- EnterpriseMembersCanMakePurchasesSettingValue
- EnterpriseOrderField
- EnterpriseServerInstallationOrderField
- EnterpriseServerUserAccountEmailOrderField
- EnterpriseServerUserAccountOrderField
- EnterpriseServerUserAccountsUploadOrderField
- EnterpriseServerUserAccountsUploadSyncState
- EnterpriseUserAccountMembershipRole
- EnterpriseUserDeployment
- FundingPlatform
- GistOrderField
- GistPrivacy
- GitSignatureState
- IdentityProviderConfigurationState
- IssueOrderField
- IssueState
- IssueTimelineItemsItemType
- LabelOrderField
- LanguageOrderField
- LockReason
- MergeStateStatus
- MergeableState
- MilestoneOrderField
- MilestoneState
- OauthApplicationCreateAuditEntryState
- OperationType
- OrderDirection
- OrgAddMemberAuditEntryPermission
- OrgCreateAuditEntryBillingPlan
- OrgRemoveBillingManagerAuditEntryReason
- OrgRemoveMemberAuditEntryMembershipType
- OrgRemoveMemberAuditEntryReason
- OrgRemoveOutsideCollaboratorAuditEntryMembershipType
- OrgRemoveOutsideCollaboratorAuditEntryReason
- OrgUpdateDefaultRepositoryPermissionAuditEntryPermission
- OrgUpdateMemberAuditEntryPermission
- OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility
- OrganizationInvitationRole
- OrganizationInvitationType
- OrganizationMemberRole
- OrganizationMembersCanCreateRepositoriesSettingValue
- OrganizationOrderField
- PackageFileOrderField
- PackageOrderField
- PackageVersionOrderField
- PinnableItemType
- ProjectCardArchivedState
- ProjectCardState
- ProjectColumnPurpose
- ProjectOrderField
- ProjectState
- ProjectTemplate
- PullRequestMergeMethod
- PullRequestOrderField
- PullRequestReviewCommentState
- PullRequestReviewEvent
- PullRequestReviewState
- PullRequestState
- PullRequestTimelineItemsItemType
- PullRequestUpdateState
- ReactionContent
- ReactionOrderField
- RefOrderField
- RegistryPackageDependencyType
- RegistryPackageType
- ReleaseOrderField
- RepoAccessAuditEntryVisibility
- RepoAddMemberAuditEntryVisibility
- RepoArchivedAuditEntryVisibility
- RepoChangeMergeSettingAuditEntryMergeType
- RepoCreateAuditEntryVisibility
- RepoDestroyAuditEntryVisibility
- RepoRemoveMemberAuditEntryVisibility
- ReportedContentClassifiers
- RepositoryAffiliation
- RepositoryContributionType
- RepositoryInvitationOrderField
- RepositoryLockReason
- RepositoryOrderField
- RepositoryPermission
- RepositoryPrivacy
- RepositoryVisibility
- RequestableCheckStatusState
- SamlDigestAlgorithm
- SamlSignatureAlgorithm
- SavedReplyOrderField
- SearchType
- SecurityAdvisoryEcosystem
- SecurityAdvisoryIdentifierType
- SecurityAdvisoryOrderField
- SecurityAdvisorySeverity
- SecurityVulnerabilityOrderField
- SponsorsTierOrderField
- SponsorshipOrderField
- SponsorshipPrivacy
- StarOrderField
- StatusState
- SubscriptionState
- TeamDiscussionCommentOrderField
- TeamDiscussionOrderField
- TeamMemberOrderField
- TeamMemberRole
- TeamMembershipType
- TeamOrderField
- TeamPrivacy
- TeamRepositoryOrderField
- TeamReviewAssignmentAlgorithm
- TeamRole
- TopicSuggestionDeclineReason
- UserBlockDuration
- UserStatusOrderField
-
Unions
- Assignee
- AuditEntryActor
- Closer
- CollectionItemContent
- CreatedIssueOrRestrictedContribution
- CreatedPullRequestOrRestrictedContribution
- CreatedRepositoryOrRestrictedContribution
- EnterpriseMember
- IssueOrPullRequest
- IssueTimelineItem
- IssueTimelineItems
- MilestoneItem
- OrgRestoreMemberAuditEntryMembership
- OrganizationAuditEntry
- PermissionGranter
- PinnableItem
- ProjectCardItem
- PullRequestTimelineItem
- PullRequestTimelineItems
- PushAllowanceActor
- ReferencedSubject
- RenamedTitleSubject
- RequestedReviewer
- ReviewDismissalAllowanceActor
- SearchResultItem
-
Input Objects
- AuditLogOrder
- CheckAnnotationData
- CheckAnnotationRange
- CheckRunAction
- CheckRunFilter
- CheckRunOutput
- CheckRunOutputImage
- CheckSuiteAutoTriggerPreference
- CheckSuiteFilter
- CommitAuthor
- CommitContributionOrder
- ContributionOrder
- DeploymentOrder
- DraftPullRequestReviewComment
- DraftPullRequestReviewThread
- EnterpriseAdministratorInvitationOrder
- EnterpriseMemberOrder
- EnterpriseServerInstallationOrder
- EnterpriseServerUserAccountEmailOrder
- EnterpriseServerUserAccountOrder
- EnterpriseServerUserAccountsUploadOrder
- GistOrder
- IssueFilters
- IssueOrder
- LabelOrder
- LanguageOrder
- MilestoneOrder
- OrganizationOrder
- PackageFileOrder
- PackageOrder
- PackageVersionOrder
- ProjectCardImport
- ProjectColumnImport
- ProjectOrder
- PullRequestOrder
- ReactionOrder
- RefOrder
- RefUpdate
- RegistryPackageMetadatum
- ReleaseOrder
- RepositoryInvitationOrder
- RepositoryOrder
- SavedReplyOrder
- SecurityAdvisoryIdentifierFilter
- SecurityAdvisoryOrder
- SecurityVulnerabilityOrder
- SponsorsTierOrder
- SponsorshipOrder
- StarOrder
- TeamDiscussionCommentOrder
- TeamDiscussionOrder
- TeamMemberOrder
- TeamOrder
- TeamRepositoryOrder
- UserStatusOrder
-
Scalars