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."
CreatedIssueOrRestrictedContribution
Represents either a issue the viewer can access or a restricted contribution.
Possible types
CreatedPullRequestOrRestrictedContribution
Represents either a pull request the viewer can access or a restricted contribution.
Possible types
CreatedRepositoryOrRestrictedContribution
Represents either a repository the viewer can access or a restricted contribution.
Possible types
IssueTimelineItems
An item in an issue timeline.
Possible types
- AddedToProjectEvent
- AssignedEvent
- ClosedEvent
- CommentDeletedEvent
- ConvertedNoteToIssueEvent
- CrossReferencedEvent
- DemilestonedEvent
- IssueComment
- LabeledEvent
- LockedEvent
- MarkedAsDuplicateEvent
- MentionedEvent
- MilestonedEvent
- MovedColumnsInProjectEvent
- PinnedEvent
- ReferencedEvent
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- SubscribedEvent
- TransferredEvent
- UnassignedEvent
- UnlabeledEvent
- UnlockedEvent
- UnpinnedEvent
- UnsubscribedEvent
- UserBlockedEvent
OrgRestoreMemberAuditEntryMembership
Types of memberships that can be restored for an Organization member.
Possible types
OrganizationAuditEntry
An audit entry in an organization audit log.
Possible types
- MembersCanDeleteReposClearAuditEntry
- MembersCanDeleteReposDisableAuditEntry
- MembersCanDeleteReposEnableAuditEntry
- OauthApplicationCreateAuditEntry
- OrgAddBillingManagerAuditEntry
- OrgAddMemberAuditEntry
- OrgBlockUserAuditEntry
- OrgConfigDisableCollaboratorsOnlyAuditEntry
- OrgConfigEnableCollaboratorsOnlyAuditEntry
- OrgCreateAuditEntry
- OrgDisableOauthAppRestrictionsAuditEntry
- OrgDisableSamlAuditEntry
- OrgDisableTwoFactorRequirementAuditEntry
- OrgEnableOauthAppRestrictionsAuditEntry
- OrgEnableSamlAuditEntry
- OrgEnableTwoFactorRequirementAuditEntry
- OrgInviteMemberAuditEntry
- OrgInviteToBusinessAuditEntry
- OrgOauthAppAccessApprovedAuditEntry
- OrgOauthAppAccessDeniedAuditEntry
- OrgOauthAppAccessRequestedAuditEntry
- OrgRemoveBillingManagerAuditEntry
- OrgRemoveMemberAuditEntry
- OrgRemoveOutsideCollaboratorAuditEntry
- OrgRestoreMemberAuditEntry
- OrgUnblockUserAuditEntry
- OrgUpdateDefaultRepositoryPermissionAuditEntry
- OrgUpdateMemberAuditEntry
- OrgUpdateMemberRepositoryCreationPermissionAuditEntry
- OrgUpdateMemberRepositoryInvitationPermissionAuditEntry
- PrivateRepositoryForkingDisableAuditEntry
- PrivateRepositoryForkingEnableAuditEntry
- RepoAccessAuditEntry
- RepoAddMemberAuditEntry
- RepoAddTopicAuditEntry
- RepoArchivedAuditEntry
- RepoChangeMergeSettingAuditEntry
- RepoConfigDisableAnonymousGitAccessAuditEntry
- RepoConfigDisableCollaboratorsOnlyAuditEntry
- RepoConfigDisableContributorsOnlyAuditEntry
- RepoConfigDisableSockpuppetDisallowedAuditEntry
- RepoConfigEnableAnonymousGitAccessAuditEntry
- RepoConfigEnableCollaboratorsOnlyAuditEntry
- RepoConfigEnableContributorsOnlyAuditEntry
- RepoConfigEnableSockpuppetDisallowedAuditEntry
- RepoConfigLockAnonymousGitAccessAuditEntry
- RepoConfigUnlockAnonymousGitAccessAuditEntry
- RepoCreateAuditEntry
- RepoDestroyAuditEntry
- RepoRemoveMemberAuditEntry
- RepoRemoveTopicAuditEntry
- RepositoryVisibilityChangeDisableAuditEntry
- RepositoryVisibilityChangeEnableAuditEntry
- TeamAddMemberAuditEntry
- TeamAddRepositoryAuditEntry
- TeamChangeParentTeamAuditEntry
- TeamRemoveMemberAuditEntry
- TeamRemoveRepositoryAuditEntry
PullRequestTimelineItem
An item in an pull request timeline.
Possible types
- AssignedEvent
- BaseRefForcePushedEvent
- ClosedEvent
- Commit
- CommitCommentThread
- CrossReferencedEvent
- DemilestonedEvent
- DeployedEvent
- DeploymentEnvironmentChangedEvent
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- IssueComment
- LabeledEvent
- LockedEvent
- MergedEvent
- MilestonedEvent
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewThread
- ReferencedEvent
- RenamedTitleEvent
- ReopenedEvent
- ReviewDismissedEvent
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- SubscribedEvent
- UnassignedEvent
- UnlabeledEvent
- UnlockedEvent
- UnsubscribedEvent
- UserBlockedEvent
PullRequestTimelineItems
An item in a pull request timeline.
Possible types
- AddedToProjectEvent
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- ClosedEvent
- CommentDeletedEvent
- ConvertedNoteToIssueEvent
- CrossReferencedEvent
- DemilestonedEvent
- DeployedEvent
- DeploymentEnvironmentChangedEvent
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- IssueComment
- LabeledEvent
- LockedEvent
- MarkedAsDuplicateEvent
- MentionedEvent
- MergedEvent
- MilestonedEvent
- MovedColumnsInProjectEvent
- PinnedEvent
- PullRequestCommit
- PullRequestCommitCommentThread
- PullRequestReview
- PullRequestReviewThread
- PullRequestRevisionMarker
- ReadyForReviewEvent
- ReferencedEvent
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- ReviewDismissedEvent
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- SubscribedEvent
- TransferredEvent
- UnassignedEvent
- UnlabeledEvent
- UnlockedEvent
- UnpinnedEvent
- UnsubscribedEvent
- UserBlockedEvent