我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

此版本的 GitHub Enterprise 将停止服务 此版本的 GitHub Enterprise 已停止服务 2020-08-20. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

文章版本: Enterprise Server 2.18

并集

本文内容

关于并集

并集是一种表示多个对象的对象类型。

例如,标记为 ProjectCardItem 的字段可能是 IssuePullRequest,因为每个对象都可能在项目卡内。 使用并集代替对象可以带来灵活性。

更多信息请参阅“GraphQL 简介。”

AuditEntryActor

Types that can initiate an audit log event.

预览通知

AuditEntryActor is available under the Audit log preview. During the preview period, the API may change without notice.

可能的类型


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.


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.

预览通知

OrgRestoreMemberAuditEntryMembership is available under the Audit log preview. During the preview period, the API may change without notice.

可能的类型


OrganizationAuditEntry

An audit entry in an organization audit log.

预览通知

OrganizationAuditEntry is available under the Audit log preview. During the preview period, the API may change without notice.

可能的类型


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.

可能的类型


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.


问问别人

找不到要找的内容?

联系我们