About unions
A union is a type of object representing many objects.
For example, a field marked as an ProjectCardItem could be an Issue or a PullRequest because each of those objects can be inside a project card. Using a union instead of an object gives you flexibility.
For more information, see Introduction to GraphQL.
BranchActorAllowanceActor
Types which can be actors for BranchActorAllowance objects.
BypassActor
Types that can represent a repository ruleset bypass actor.
Claimable
An object which can have its data claimed or claim data from another.
CreatedIssueOrRestrictedContribution
Represents either a issue the viewer can access or a restricted contribution.
Possible types for CreatedIssueOrRestrictedContribution
CreatedPullRequestOrRestrictedContribution
Represents either a pull request the viewer can access or a restricted contribution.
Possible types for CreatedPullRequestOrRestrictedContribution
CreatedRepositoryOrRestrictedContribution
Represents either a repository the viewer can access or a restricted contribution.
Possible types for CreatedRepositoryOrRestrictedContribution
IssueOrPullRequest
Used for return value of Repository.issueOrPullRequest.
Possible types for IssueOrPullRequest
IssueTimelineItems
An item in an issue timeline.
Possible types for IssueTimelineItems
AddedToProjectEventAssignedEventClosedEventCommentDeletedEventConnectedEventConvertedNoteToIssueEventConvertedToDiscussionEventCrossReferencedEventDemilestonedEventDisconnectedEventIssueCommentLabeledEventLockedEventMarkedAsDuplicateEventMentionedEventMilestonedEventMovedColumnsInProjectEventPinnedEventReferencedEventRemovedFromProjectEventRenamedTitleEvent