Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Unions

关于并集

联合是表示多个对象的对象类型。

例如,� �记为 ProjectCardItem 的字段可以是 IssuePullRequest,� 为所有这些对象都可以位于一个项目卡中。 使用并集代替对象可以带来灵活性。

有关详细信息,请参阅“GraphQL 简介”。

Assignee

Types that can be assigned to issues.

AuditEntryActor

Types that can initiate an audit log event.

可能的类型

Closer

The object which triggered a ClosedEvent.

可能的类型

CreatedIssueOrRestrictedContribution

Represents either a issue the viewer can access or a restricted contribution.

CreatedPullRequestOrRestrictedContribution

Represents either a pull request the viewer can access or a restricted contribution.

CreatedRepositoryOrRestrictedContribution

Represents either a repository the viewer can access or a restricted contribution.

DeploymentReviewer

Users and teams.

可能的类型

EnterpriseMember

An object that is a member of an enterprise.

IpAllowListOwner

Types that can own an IP allow list.

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

可能的类型

MilestoneItem

Types that can be inside a Milestone.

可能的类型

OrgRestoreMemberAuditEntryMembership

Types of memberships that can be restored for an Organization member.

OrganizationAuditEntry

An audit entry in an organization audit log.

可能的类型

PermissionGranter

Types that can grant permissions on a repository to a user.

PinnableItem

Types that can be pinned to a profile page.

可能的类型

ProjectCardItem

Types that can be inside Project Cards.

可能的类型

PullRequestTimelineItems

An item in a pull request timeline.

可能的类型

PushAllowanceActor

Types that can be an actor.

可能的类型

Reactor

Types that can be assigned to reactions.

ReferencedSubject

Any referencable object.

可能的类型

RenamedTitleSubject

An object which has a renamable title.

可能的类型

RequestedReviewer

Types that can be requested reviewers.

可能的类型

ReviewDismissalAllowanceActor

Types that can be an actor.

可能的类型

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

可能的类型

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

可能的类型

VerifiableDomainOwner

Types that can own a verifiable domain.

可能的类型