This version of GitHub Enterprise Server was discontinued on 2025-06-19. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.
Mutations
The mutation type defines GraphQL operations that change data on the server.
In this article
- About mutations
- abortQueuedMigrations
- abortRepositoryMigration
- addAssigneesToAssignable
- addComment
- addDiscussionComment
- addDiscussionPollVote
- addEnterpriseAdmin
- addEnterpriseOrganizationMember
- addLabelsToLabelable
- addProjectCard
- addProjectColumn
- addProjectV2DraftIssue
- addProjectV2ItemById
- addPullRequestReview
- addPullRequestReviewComment
- addPullRequestReviewThread
- addPullRequestReviewThreadReply
- addReaction
- addStar
- addUpvote
- addVerifiableDomain
- approveDeployments
- approveVerifiableDomain
- archiveProjectV2Item
- archiveRepository
- changeUserStatus
- clearLabelsFromLabelable
- clearProjectV2ItemFieldValue
- cloneProject
- cloneTemplateRepository
- closeDiscussion
- closeIssue
- closePullRequest
- convertProjectCardNoteToIssue
- convertPullRequestToDraft
- copyProjectV2
- createAttributionInvitation
- createBranchProtectionRule
- createCheckRun
- createCheckSuite
- createCommitOnBranch
- createDeployment
- createDeploymentStatus
- createDiscussion
- createEnterpriseOrganization
- createEnvironment
- createIpAllowListEntry
- createIssue
- createLabel
- createLinkedBranch
- createMigrationSource
- createProject
- createProjectV2
- createProjectV2Field
- createPullRequest
- createRef
- createRepository
- createRepositoryRuleset
- createTeamDiscussion
- createTeamDiscussionComment
- createUserList
- deleteBranchProtectionRule
- deleteDeployment
- deleteDiscussion
- deleteDiscussionComment
- deleteEnvironment
- deleteIpAllowListEntry
- deleteIssue
- deleteIssueComment
- deleteLabel
- deleteLinkedBranch
- deletePackageVersion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deleteProjectV2
- deleteProjectV2Field
- deleteProjectV2Item
- deleteProjectV2Workflow
- deletePullRequestReview
- deletePullRequestReviewComment
- deleteRef
- deleteRepositoryRuleset
- deleteTeamDiscussion
- deleteTeamDiscussionComment
- deleteUserList
- deleteVerifiableDomain
- dequeuePullRequest
- disablePullRequestAutoMerge
- dismissPullRequestReview
- dismissRepositoryVulnerabilityAlert
- enablePullRequestAutoMerge
- enqueuePullRequest
- followOrganization
- followUser
- grantEnterpriseOrganizationsMigratorRole
- grantMigratorRole
- importProject
- linkProjectV2ToRepository
- linkProjectV2ToTeam
- linkRepositoryToProject
- lockLockable
- markDiscussionCommentAsAnswer
- markFileAsViewed
- markNotificationAsDone
- markProjectV2AsTemplate
- markPullRequestReadyForReview
- mergeBranch
- mergePullRequest
- minimizeComment
- moveProjectCard
- moveProjectColumn
- pinIssue
- regenerateVerifiableDomainToken
- rejectDeployments
- removeAssigneesFromAssignable
- removeEnterpriseAdmin
- removeLabelsFromLabelable
- removeOutsideCollaborator
- removeReaction
- removeStar
- removeUpvote
- reopenDiscussion
- reopenIssue
- reopenPullRequest
- requestReviews
- rerequestCheckSuite
- resolveReviewThread
- revertPullRequest
- revokeEnterpriseOrganizationsMigratorRole
- revokeMigratorRole
- startOrganizationMigration
- startRepositoryMigration
- submitPullRequestReview
- transferIssue
- unarchiveProjectV2Item
- unarchiveRepository
- unfollowOrganization
- unfollowUser
- unlinkProjectV2FromRepository
- unlinkProjectV2FromTeam
- unlinkRepositoryFromProject
- unlockLockable
- unmarkDiscussionCommentAsAnswer
- unmarkFileAsViewed
- unmarkIssueAsDuplicate
- unmarkProjectV2AsTemplate
- unminimizeComment
- unpinIssue
- unresolveReviewThread
- unsubscribeFromNotifications
- updateBranchProtectionRule
- updateCheckRun
- updateCheckSuitePreferences
- updateDiscussion
- updateDiscussionComment
- updateEnterpriseAllowPrivateRepositoryForkingSetting
- updateEnterpriseDefaultRepositoryPermissionSetting
- updateEnterpriseMembersCanChangeRepositoryVisibilitySetting
- updateEnterpriseMembersCanCreateRepositoriesSetting
- updateEnterpriseMembersCanDeleteIssuesSetting
- updateEnterpriseMembersCanDeleteRepositoriesSetting
- updateEnterpriseMembersCanInviteCollaboratorsSetting
- updateEnterpriseMembersCanMakePurchasesSetting
- updateEnterpriseMembersCanUpdateProtectedBranchesSetting
- updateEnterpriseMembersCanViewDependencyInsightsSetting
- updateEnterpriseOrganizationProjectsSetting
- updateEnterpriseOwnerOrganizationRole
- updateEnterpriseProfile
- updateEnterpriseRepositoryProjectsSetting
- updateEnterpriseTeamDiscussionsSetting
- updateEnterpriseTwoFactorAuthenticationRequiredSetting
- updateEnvironment
- updateIpAllowListEnabledSetting
- updateIpAllowListEntry
- updateIpAllowListForInstalledAppsEnabledSetting
- updateIssue
- updateIssueComment
- updateLabel
- updateNotificationRestrictionSetting
- updateOrganizationAllowPrivateRepositoryForkingSetting
- updateOrganizationWebCommitSignoffSetting
- updateProject
- updateProjectCard
- updateProjectColumn