关于联合体
一个联合体是一种表示多个对象的类型。
例如,标记为ProjectCardItem 的字段可以是 Issue 或 PullRequest,因为这些对象中的每一个都可以在项目卡片中。使用联合体而不是对象可以为您提供灵活性。
有关更多信息,请参阅“GraphQL 简介”。
CreatedPullRequestOrRestrictedContribution
表示查看者可以访问的拉取请求或受限贡献。
CreatedPullRequestOrRestrictedContribution 的可能类型
CreatedRepositoryOrRestrictedContribution
表示查看者可以访问的存储库或受限贡献。
CreatedRepositoryOrRestrictedContribution 的可能类型
IssueTimelineItem
问题时间轴中的一个条目。
IssueTimelineItems
问题时间轴中的一个条目。
组织审核条目
组织审核日志中的审核条目。
OrganizationAuditEntry 的可能类型
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
ProjectV2ItemFieldValue
项目字段值。
ProjectV2ItemFieldValue 的可能类型
ProjectV2ItemFieldDateValueProjectV2ItemFieldIterationValueProjectV2ItemFieldLabelValueProjectV2ItemFieldMilestoneValueProjectV2ItemFieldNumberValueProjectV2ItemFieldPullRequestValueProjectV2ItemFieldRepositoryValueProjectV2ItemFieldReviewerValueProjectV2ItemFieldSingleSelectValueProjectV2ItemFieldTextValueProjectV2ItemFieldUserValue
PullRequestTimelineItem
拉取请求时间线中的一个条目。
PullRequestTimelineItem 的可能类型
分配事件BaseRefDeletedEventBaseRefForcePushedEvent关闭事件提交CommitCommentThread交叉引用事件取消里程碑事件DeployedEventDeploymentEnvironmentChangedEventHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEvent问题评论标签事件锁定事件MergedEvent里程碑事件PullRequestReviewPullRequestReviewCommentPullRequestReviewThread引用事件重命名标题事件重新打开事件ReviewDismissedEventReviewRequestRemovedEventReviewRequestedEvent订阅事件取消分配事件取消标签事件解锁事件取消订阅事件用户阻止事件
PullRequestTimelineItems
拉取请求时间线中的一个条目。
PullRequestTimelineItems 的可能类型
AddedToMergeQueueEvent添加到项目事件分配事件AutoMergeDisabledEventAutoMergeEnabledEventAutoRebaseEnabledEventAutoSquashEnabledEventAutomaticBaseChangeFailedEventAutomaticBaseChangeSucceededEventBaseRefChangedEventBaseRefDeletedEventBaseRefForcePushedEvent关闭事件评论删除事件连接事件ConvertToDraftEvent将注释转换为问题事件转换为讨论事件交叉引用事件取消里程碑事件DeployedEventDeploymentEnvironmentChangedEvent断开连接事件HeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEvent问题评论标签事件锁定事件标记为重复事件提及事件MergedEvent里程碑事件在项目中移动列事件固定事件PullRequestCommitPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewThreadPullRequestRevisionMarkerReadyForReviewEvent引用事件RemovedFromMergeQueueEvent从项目中移除事件重命名标题事件重新打开事件ReviewDismissedEventReviewRequestRemovedEventReviewRequestedEvent订阅事件转移事件取消分配事件取消标签事件解锁事件取消标记为重复事件取消固定事件取消订阅事件用户阻止事件
RuleParameters
可以作为 RepositoryRule 对象参数的类型。
RuleParameters 的可能类型
BranchNamePatternParametersCodeScanningParametersCommitAuthorEmailPatternParametersCommitMessagePatternParametersCommitterEmailPatternParametersFileExtensionRestrictionParametersFilePathRestrictionParametersMaxFilePathLengthParametersMaxFileSizeParametersMergeQueueParametersPullRequestParametersRequiredDeploymentsParametersRequiredStatusChecksParametersTagNamePatternParametersUpdateParametersWorkflowsParameters
SponsorsListingFeatureableItem
可以在 GitHub Sponsors 个人资料中展示的记录。