Sobre uniões
Uma união é um tipo de objeto que representa muitos objetos.
Por exemplo, um campo marcado como um ProjectCardItem pode ser um Issue ou um PullRequest porque cada um desses objetos pode estar dentro de um cartão de projeto. Usar uma união em vez de um objeto dá flexibilidade.
Para obter mais informações, consulte Introdução ao GraphQL.
Assignee
Types that can be assigned to issues.
Os possíveis tipos para Assignee
AuditEntryActor
Types that can initiate an audit log event.
Os possíveis tipos para AuditEntryActor
BranchActorAllowanceActor
Types which can be actors for BranchActorAllowance objects.
Os possíveis tipos para BranchActorAllowanceActor
BypassActor
Types that can represent a repository ruleset bypass actor.
Os possíveis tipos para BypassActor
Claimable
An object which can have its data claimed or claim data from another.
Os possíveis tipos para Claimable
Closer
The object which triggered a ClosedEvent.
Os possíveis tipos para Closer
CreatedIssueOrRestrictedContribution
Represents either a issue the viewer can access or a restricted contribution.
Os possíveis tipos para CreatedIssueOrRestrictedContribution
CreatedPullRequestOrRestrictedContribution
Represents either a pull request the viewer can access or a restricted contribution.
Os possíveis tipos para CreatedPullRequestOrRestrictedContribution
CreatedRepositoryOrRestrictedContribution
Represents either a repository the viewer can access or a restricted contribution.
Os possíveis tipos para CreatedRepositoryOrRestrictedContribution
DeploymentReviewer
Users and teams.
Os possíveis tipos para DeploymentReviewer
EnterpriseMember
An object that is a member of an enterprise.
Os possíveis tipos para EnterpriseMember
IpAllowListOwner
Types that can own an IP allow list.
Os possíveis tipos para IpAllowListOwner
IssueOrPullRequest
Used for return value of Repository.issueOrPullRequest.
Os possíveis tipos para IssueOrPullRequest
IssueTimelineItem
An item in an issue timeline.
Os possíveis tipos para IssueTimelineItem
AssignedEventClosedEventCommitCrossReferencedEventDemilestonedEventIssueCommentLabeledEventLockedEventMilestonedEventReferencedEventRenamedTitleEventReopenedEventSubscribedEventTransferredEventUnassignedEventUnlabeledEventUnlockedEventUnsubscribedEventUserBlockedEvent
IssueTimelineItems
An item in an issue timeline.
Os possíveis tipos para IssueTimelineItems
AddedToProjectEventAssignedEventClosedEventCommentDeletedEventConnectedEventConvertedNoteToIssueEventConvertedToDiscussionEventCrossReferencedEventDemilestonedEventDisconnectedEventIssueCommentLabeledEventLockedEventMarkedAsDuplicateEventMentionedEventMilestonedEventMovedColumnsInProjectEventParentIssueAddedEventParentIssueRemovedEventPinnedEventReferencedEventRemovedFromProjectEventRenamedTitleEventReopenedEventSubIssueAddedEventSubIssueRemovedEventSubscribedEventTransferredEventUnassignedEventUnlabeledEventUnlockedEventUnmarkedAsDuplicateEventUnpinnedEventUnsubscribedEventUserBlockedEvent
MilestoneItem
Types that can be inside a Milestone.
Os possíveis tipos para MilestoneItem
OrgRestoreMemberAuditEntryMembership
Types of memberships that can be restored for an Organization member.
Os possíveis tipos para OrgRestoreMemberAuditEntryMembership
OrgRestoreMemberMembershipOrganizationAuditEntryDataOrgRestoreMemberMembershipRepositoryAuditEntryDataOrgRestoreMemberMembershipTeamAuditEntryData
OrganizationAuditEntry
An audit entry in an organization audit log.
Os possíveis tipos para OrganizationAuditEntry
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
OrganizationOrUser
Used for argument of CreateProjectV2 mutation.
Os possíveis tipos para OrganizationOrUser
PermissionGranter
Types that can grant permissions on a repository to a user.
Os possíveis tipos para PermissionGranter
PinnableItem
Types that can be pinned to a profile page.
Os possíveis tipos para PinnableItem
ProjectCardItem
Types that can be inside Project Cards.
Os possíveis tipos para ProjectCardItem
ProjectV2Actor
Possible collaborators for a project.
Os possíveis tipos para ProjectV2Actor
ProjectV2FieldConfiguration
Configurations for project fields.
Os possíveis tipos para ProjectV2FieldConfiguration
ProjectV2ItemContent
Types that can be inside Project Items.
Os possíveis tipos para ProjectV2ItemContent
ProjectV2ItemFieldValue
Project field values.
Os possíveis tipos para ProjectV2ItemFieldValue
ProjectV2ItemFieldDateValueProjectV2ItemFieldIterationValueProjectV2ItemFieldLabelValueProjectV2ItemFieldMilestoneValueProjectV2ItemFieldNumberValueProjectV2ItemFieldPullRequestValueProjectV2ItemFieldRepositoryValueProjectV2ItemFieldReviewerValueProjectV2ItemFieldSingleSelectValueProjectV2ItemFieldTextValueProjectV2ItemFieldUserValue
PullRequestTimelineItem
An item in a pull request timeline.
Os possíveis tipos para PullRequestTimelineItem
AssignedEventBaseRefDeletedEventBaseRefForcePushedEventClosedEventCommitCommitCommentThreadCrossReferencedEventDemilestonedEventDeployedEventDeploymentEnvironmentChangedEventHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEventIssueCommentLabeledEventLockedEventMergedEventMilestonedEventPullRequestReviewPullRequestReviewCommentPullRequestReviewThreadReferencedEventRenamedTitleEventReopenedEventReviewDismissedEventReviewRequestRemovedEventReviewRequestedEventSubscribedEventUnassignedEventUnlabeledEventUnlockedEventUnsubscribedEventUserBlockedEvent
PullRequestTimelineItems
An item in a pull request timeline.
Os possíveis tipos para PullRequestTimelineItems
AddedToMergeQueueEventAddedToProjectEventAssignedEventAutoMergeDisabledEventAutoMergeEnabledEventAutoRebaseEnabledEventAutoSquashEnabledEventAutomaticBaseChangeFailedEventAutomaticBaseChangeSucceededEventBaseRefChangedEventBaseRefDeletedEventBaseRefForcePushedEventClosedEventCommentDeletedEventConnectedEventConvertToDraftEventConvertedNoteToIssueEventConvertedToDiscussionEventCrossReferencedEventDemilestonedEventDeployedEventDeploymentEnvironmentChangedEventDisconnectedEventHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEventIssueCommentLabeledEventLockedEventMarkedAsDuplicateEventMentionedEventMergedEventMilestonedEventMovedColumnsInProjectEventParentIssueAddedEventParentIssueRemovedEventPinnedEventPullRequestCommitPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewThreadPullRequestRevisionMarkerReadyForReviewEventReferencedEventRemovedFromMergeQueueEventRemovedFromProjectEventRenamedTitleEventReopenedEventReviewDismissedEventReviewRequestRemovedEventReviewRequestedEventSubIssueAddedEventSubIssueRemovedEventSubscribedEventTransferredEventUnassignedEventUnlabeledEventUnlockedEventUnmarkedAsDuplicateEventUnpinnedEventUnsubscribedEventUserBlockedEvent
PushAllowanceActor
Types that can be an actor.
Os possíveis tipos para PushAllowanceActor
Reactor
Types that can be assigned to reactions.
Os possíveis tipos para Reactor
ReferencedSubject
Any referencable object.
Os possíveis tipos para ReferencedSubject
RenamedTitleSubject
An object which has a renamable title.
Os possíveis tipos para RenamedTitleSubject
RequestedReviewer
Types that can be requested reviewers.
Os possíveis tipos para RequestedReviewer
ReviewDismissalAllowanceActor
Types that can be an actor.
Os possíveis tipos para ReviewDismissalAllowanceActor
RuleParameters
Types which can be parameters for RepositoryRule objects.
Os possíveis tipos para RuleParameters
BranchNamePatternParametersCodeScanningParametersCommitAuthorEmailPatternParametersCommitMessagePatternParametersCommitterEmailPatternParametersFileExtensionRestrictionParametersFilePathRestrictionParametersMaxFilePathLengthParametersMaxFileSizeParametersMergeQueueParametersPullRequestParametersRequiredDeploymentsParametersRequiredStatusChecksParametersTagNamePatternParametersUpdateParametersWorkflowsParameters
RuleSource
Types which can have RepositoryRule objects.
Os possíveis tipos para RuleSource
SearchResultItem
The results of a search.
Os possíveis tipos para SearchResultItem
StatusCheckRollupContext
Types that can be inside a StatusCheckRollup context.
Os possíveis tipos para StatusCheckRollupContext
UserListItems
Types that can be added to a user list.
Os possíveis tipos para UserListItems
VerifiableDomainOwner
Types that can own a verifiable domain.