关于接口
接口用作其他对象可以继承的父对象。
例如,Lockable 是一个接口,因为 Issue 和 PullRequest 对象都可以锁定。 接口拥有自己的指定字段列表,这些字段通过实现对象得以共享。
有关详细信息,请参阅“GraphQL 简介”。
Actor
Represents an object which can take actions on GitHub. Typically a User or Bot.
Assignable
An object that can have users assigned to it.
Assignable 的实现方式
Assignable 字段
| 名称 | 说明 |
|---|---|
| A list of actors assigned to this object. |
| A list of Users assigned to this object. |
| A list of suggested actors to assign to this object.
|
AuditEntry
An entry in the audit log.
AuditEntry 的实现方式
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
AuditEntry 字段
| 名称 | 说明 |
|---|---|
| The action name. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The user who initiated the action. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The IP address of the actor. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| A readable representation of the actor's location. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The username of the user who initiated the action. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP path for the actor. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP URL for the actor. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The time the action was initiated. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The corresponding operation type for the action. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The user affected by the action. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| For actions involving two users, the actor is the initiator and the user is the affected user. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP path for the user. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP URL for the user. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
Closable
An object that can be closed.
Closable 的实现方式
Closable 字段
| 名称 | 说明 |
|---|---|
| Indicates if the object is closed (definition of closed may depend on type). |
| Identifies the date and time when the object was closed. |
| Indicates if the object can be closed by the viewer. |
| Indicates if the object can be reopened by the viewer. |
Comment
Represents a comment.
Comment 的实现方式
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentPullRequestPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Comment 字段
| 名称 | 说明 |
|---|---|
| The actor who authored the comment. |
| Author's association with the subject of the comment. |
| The body as Markdown. |
| The body rendered to HTML. |
| The body rendered to text. |
| Identifies the date and time when the object was created. |
| Check if this comment was created via an email reply. |
| The actor who edited the comment. |
| The Node ID of the Comment object. |
| Check if this comment was edited and includes an edit with the creation data. |
| The moment the editor made the last edit. |
| Identifies when the comment was published at. |
| Identifies the date and time when the object was last updated. |
| A list of edits to this content. |
| Did the viewer author this comment. |
Contribution
Represents a contribution a user made on GitHub, such as opening an issue.
Contribution 的实现方式
CreatedCommitContributionCreatedIssueContributionCreatedPullRequestContributionCreatedPullRequestReviewContributionCreatedRepositoryContributionJoinedGitHubContributionRestrictedContribution
Contribution 字段
| 名称 | 说明 |
|---|---|
| Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. |
| When this contribution was made. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
Deletable
Entities that can be deleted.
Deletable 的实现方式
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Deletable 字段
| 名称 | 说明 |
|---|---|
| Check if the current viewer can delete this object. |
EnterpriseAuditEntryData
Metadata for an audit entry containing enterprise account information.
EnterpriseAuditEntryData 的实现方式
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOrgInviteToBusinessAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntry
EnterpriseAuditEntryData 字段
| 名称 | 说明 |
|---|---|
| The HTTP path for this enterprise. |
| The slug of the enterprise. |
| The HTTP URL for this enterprise. |
GitObject
Represents a Git object.
GitObject 的实现方式
GitObject 字段
| 名称 | 说明 |
|---|---|
| An abbreviated version of the Git object ID. |
| The HTTP path for this Git object. |
| The HTTP URL for this Git object. |
| The Node ID of the GitObject object. |
| The Git object ID. |
| The Repository the Git object belongs to. |
GitSignature
Information about a signature (GPG or S/MIME) on a Commit or Tag.
GitSignature 的实现方式
GitSignature 字段
| 名称 | 说明 |
|---|---|
| Email used to sign this object. |
| True if the signature is valid and verified by GitHub. |
| Payload for GPG signing object. Raw ODB object without the signature header. |
| ASCII-armored signature header from object. |
| GitHub user corresponding to the email signing this commit. |
| The state of this signature. |
| The date the signature was verified, if valid. |
| True if the signature was made with GitHub's signing key. |
HovercardContext
An individual line of a hovercard.
HovercardContext 的实现方式
GenericHovercardContextOrganizationTeamsHovercardContextOrganizationsHovercardContextReviewStatusHovercardContextViewerHovercardContext
HovercardContext 字段
| 名称 | 说明 |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
Labelable
An object that can have labels assigned to it.
Labelable 的实现方式
Labelable 字段
| 名称 | 说明 |
|---|---|
| A list of labels associated with the object.
|
| Indicates if the viewer can edit labels for this object. |
Lockable
An object that can be locked.
Lockable 的实现方式
Lockable 字段
| 名称 | 说明 |
|---|---|
| Reason that the conversation was locked. |
|
|
MemberStatusable
Entities that have members who can set status messages.
MemberStatusable 的实现方式
MemberStatusable 字段
| 名称 | 说明 |
|---|---|
| Get the status messages members of this entity have set that are either public or visible only to the organization.
|
Migration
Represents a GitHub Enterprise Importer (GEI) migration.
Migration 的实现方式
Migration 字段
| 名称 | 说明 |
|---|---|
| The migration flag to continue on error. |
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The reason the migration failed. |
| The Node ID of the Migration object. |
| The URL for the migration log (expires 1 day after migration completes). |
| The migration source. |
| The target repository name. |
| The migration source URL, for example |
| The migration state. |
| The number of warnings encountered for this migration. To review the warnings, check the Migration Log. |
Minimizable
Entities that can be minimized.
Minimizable 的实现方式
Minimizable 字段
| 名称 | 说明 |
|---|---|
| Returns whether or not a comment has been minimized. |
| Returns why the comment was minimized. One of |
| Check if the current viewer can minimize this object. |
| Check if the current viewer can unminimize this object. |
Node
An object with an ID.
Node 的实现方式
AddedToMergeQueueEventAddedToProjectEventAddedToProjectV2EventAppAssignedEventAutoMergeDisabledEventAutoMergeEnabledEventAutoRebaseEnabledEventAutoSquashEnabledEventAutomaticBaseChangeFailedEventAutomaticBaseChangeSucceededEventBaseRefChangedEventBaseRefDeletedEventBaseRefForcePushedEventBlobBlockedByAddedEventBlockedByRemovedEventBlockingAddedEventBlockingRemovedEventBotBranchProtectionRuleBypassForcePushAllowanceBypassPullRequestAllowanceCWECheckRunCheckSuiteClosedEventCodeOfConductCommentDeletedEventCommitCommitCommentCommitCommentThreadComparisonConnectedEventConvertToDraftEventConvertedFromDraftEventConvertedNoteToIssueEventConvertedToDiscussionEventCrossReferencedEventDemilestonedEventDependencyGraphManifestDeployKeyDeployedEventDeploymentDeploymentEnvironmentChangedEventDeploymentReviewDeploymentStatusDisconnectedEventDiscussionDiscussionCategoryDiscussionCommentDiscussionPollDiscussionPollOptionDraftIssueEnterpriseEnterpriseAdministratorInvitationEnterpriseIdentityProviderEnterpriseMemberInvitationEnterpriseRepositoryInfoEnterpriseServerInstallationEnterpriseServerUserAccountEnterpriseServerUserAccountEmailEnterpriseServerUserAccountsUploadEnterpriseUserAccountEnvironmentExternalIdentityGistGistCommentHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEventIpAllowListEntryIssueIssueCommentIssueTypeIssueTypeAddedEventIssueTypeChangedEventIssueTypeRemovedEventLabelLabeledEventLanguageLicenseLinkedBranchLockedEventMannequinMarkedAsDuplicateEventMarketplaceCategoryMarketplaceListingMemberFeatureRequestNotificationMembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryMentionedEventMergeQueueMergeQueueEntryMergedEventMigrationSourceMilestoneMilestonedEventMovedColumnsInProjectEventOIDCProviderOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryOrganizationOrganizationIdentityProviderOrganizationInvitationOrganizationMigrationPackagePackageFilePackageTagPackageVersionParentIssueAddedEventParentIssueRemovedEventPinnedDiscussionPinnedEnvironmentPinnedEventPinnedIssuePrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryProjectProjectCardProjectColumnProjectV2ProjectV2FieldProjectV2ItemProjectV2ItemFieldDateValueProjectV2ItemFieldIterationValueProjectV2ItemFieldNumberValueProjectV2ItemFieldSingleSelectValueProjectV2ItemFieldTextValueProjectV2ItemStatusChangedEventProjectV2IterationFieldProjectV2SingleSelectFieldProjectV2StatusUpdateProjectV2ViewProjectV2WorkflowPublicKeyPullRequestPullRequestCommitPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewCommentPullRequestReviewThreadPullRequestThreadPushPushAllowanceReactionReadyForReviewEventRefReferencedEventReleaseReleaseAssetRemovedFromMergeQueueEventRemovedFromProjectEventRemovedFromProjectV2EventRenamedTitleEventReopenedEventRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryRepositoryInvitationRepositoryMigrationRepositoryRuleRepositoryRulesetRepositoryRulesetBypassActorRepositoryTopicRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryRepositoryVulnerabilityAlertReviewDismissalAllowanceReviewDismissedEventReviewRequestReviewRequestRemovedEventReviewRequestedEventSavedReplySecurityAdvisorySponsorsActivitySponsorsListingSponsorsListingFeaturedItemSponsorsTierSponsorshipSponsorshipNewsletterStatusStatusCheckRollupStatusContextSubIssueAddedEventSubIssueRemovedEventSubscribedEventTagTeamTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamDiscussionTeamDiscussionCommentTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntryTopicTransferredEventTreeUnassignedEventUnlabeledEventUnlockedEventUnmarkedAsDuplicateEventUnpinnedEventUnsubscribedEventUserUserBlockedEventUserContentEditUserListUserNamespaceRepositoryUserStatusVerifiableDomainWorkflowWorkflowRunWorkflowRunFile
Node 字段
| 名称 | 说明 |
|---|---|
| ID of the object. |
OauthApplicationAuditEntryData
Metadata for an audit entry with action oauth_application.*.
OauthApplicationAuditEntryData 的实现方式
OauthApplicationCreateAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntry
OauthApplicationAuditEntryData 字段
| 名称 | 说明 |
|---|---|
| The name of the OAuth application. |
| The HTTP path for the OAuth application. |
| The HTTP URL for the OAuth application. |
OrganizationAuditEntryData
Metadata for an audit entry with action org.*.
OrganizationAuditEntryData 的实现方式
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgRestoreMemberMembershipOrganizationAuditEntryDataOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
OrganizationAuditEntryData 字段
| 名称 | 说明 |
|---|---|
| The Organization associated with the Audit Entry. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The name of the Organization. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP path for the organization. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
| The HTTP URL for the organization. 警告
The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. |
PackageOwner
Represents an owner of a package.
PackageOwner 的实现方式
PackageOwner 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the PackageOwner object. |
| A list of packages under the owner.
|
ProfileOwner
Represents any entity on GitHub that has a profile page.
ProfileOwner 的实现方式
ProfileOwner 字段
| 名称 | 说明 |
|---|---|
| Determine if this repository owner has any items that can be pinned to their profile.
|
| The public profile email. |
| The Node ID of the ProfileOwner object. |
| Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. |
| The public profile location. |
| The username used to login. |
| The public profile name. |
| A list of repositories and gists this profile owner can pin to their profile.
|
| A list of repositories and gists this profile owner has pinned to their profile.
|
| Returns how many more items this profile owner can pin to their profile. |
| Can the viewer pin repositories and gists to the profile?. |
| The public profile website URL. |
ProjectOwner
Represents an owner of a Project.
ProjectOwner 的实现方式
ProjectOwner 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the ProjectOwner object. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. |
| Find project by number. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.
|
| A list of projects under the owner. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.
|
| The HTTP path listing owners projects. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. |
| The HTTP URL listing owners projects. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. |
| Can the current viewer create new projects on this owner. 警告
Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. |
ProjectV2Event
Represents an event related to a project on the timeline of an issue or pull request.
ProjectV2Event 的实现方式
AddedToProjectV2EventConvertedFromDraftEventProjectV2ItemStatusChangedEventRemovedFromProjectV2Event
ProjectV2Event 字段
| 名称 | 说明 |
|---|---|
| Project referenced by event. |
| Did this event result from workflow automation?. |
ProjectV2FieldCommon
Common fields across different project field types.
ProjectV2FieldCommon 的实现方式
ProjectV2FieldCommon 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the object was created. |
| The field's type. |
| Identifies the primary key from the database. |
| The Node ID of the ProjectV2FieldCommon object. |
| The project field's name. |
| The project that contains this field. |
| Identifies the date and time when the object was last updated. |
ProjectV2ItemFieldValueCommon
Common fields across different project field value types.
ProjectV2ItemFieldValueCommon 的实现方式
ProjectV2ItemFieldDateValueProjectV2ItemFieldIterationValueProjectV2ItemFieldNumberValueProjectV2ItemFieldSingleSelectValueProjectV2ItemFieldTextValue
ProjectV2ItemFieldValueCommon 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the object was created. |
| The actor who created the item. |
| Identifies the primary key from the database. |
| The project field that contains this value. |
| The Node ID of the ProjectV2ItemFieldValueCommon object. |
| The project item that contains this value. |
| Identifies the date and time when the object was last updated. |
ProjectV2Owner
Represents an owner of a project.
ProjectV2Owner 的实现方式
ProjectV2Owner 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the ProjectV2Owner object. |
| Find a project by number.
|
| A list of projects under the owner.
|
ProjectV2Recent
Recent projects for the owner.
ProjectV2Recent 的实现方式
ProjectV2Recent 字段
| 名称 | 说明 |
|---|---|
| Recent projects that this user has modified in the context of the owner. |
Reactable
Represents a subject that can be reacted on.
Reactable 的实现方式
CommitCommentDiscussionDiscussionCommentIssueIssueCommentPullRequestPullRequestReviewPullRequestReviewCommentReleaseTeamDiscussionTeamDiscussionComment
Reactable 字段
| 名称 | 说明 |
|---|---|
| Identifies the primary key from the database. |
| The Node ID of the Reactable object. |
| A list of reactions grouped by content left on the subject. |
| A list of Reactions left on the Issue.
|
| Can user react to this subject. |
RepositoryAuditEntryData
Metadata for an audit entry with action repo.*.
RepositoryAuditEntryData 的实现方式
OrgRestoreMemberMembershipRepositoryAuditEntryDataPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryTeamAddRepositoryAuditEntryTeamRemoveRepositoryAuditEntry
RepositoryAuditEntryData 字段
| 名称 | 说明 |
|---|---|
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
RepositoryDiscussionAuthor
Represents an author of discussions in repositories.
RepositoryDiscussionAuthor 的实现方式
RepositoryDiscussionAuthor 字段
| 名称 | 说明 |
|---|---|
| Discussions this user has started.
|
RepositoryDiscussionCommentAuthor
Represents an author of discussion comments in repositories.
RepositoryDiscussionCommentAuthor 的实现方式
RepositoryDiscussionCommentAuthor 字段
| 名称 | 说明 |
|---|---|
| Discussion comments this user has authored.
|
RepositoryInfo
A subset of repository info.
RepositoryInfo 的实现方式
RepositoryInfo 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the repository was archived. |
| Identifies the date and time when the object was created. |
| The description of the repository. |
| The description of the repository rendered to HTML. |
| Returns how many forks there are of this repository in the whole network. |
| Indicates if the repository has the Discussions feature enabled. |
| Indicates if the repository has issues feature enabled. |
| Indicates if the repository has the Projects feature enabled. |
| Indicates if the repository displays a Sponsor button for financial contributions. |
| Indicates if the repository has wiki feature enabled. |
| The repository's URL. |
| Indicates if the repository is unmaintained. |
| Identifies if the repository is a fork. |
| Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. |
| Indicates if the repository has been locked or not. |
| Identifies if the repository is a mirror. |
| Identifies if the repository is private or internal. |
| Identifies if the repository is a template that can be used to generate new repositories. |
| The license associated with the repository. |
| The reason the repository has been locked. |
| The repository's original mirror URL. |
| The name of the repository. |
| The repository's name with owner. |
| The image used to represent this repository in Open Graph data. |
| The User owner of the repository. |
| Identifies the date and time when the repository was last pushed to. |
| The HTTP path for this repository. |
| A description of the repository, rendered to HTML without any links in it.
|
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this repository. |
| Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. |
| Indicates the repository's visibility level. |
RepositoryNode
Represents a object that belongs to a repository.
RepositoryNode 的实现方式
CommitCommentCommitCommentThreadDependabotUpdateDiscussionDiscussionCategoryIssueIssueCommentPinnedDiscussionPullRequestPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewCommentRepositoryVulnerabilityAlert
RepositoryNode 字段
| 名称 | 说明 |
|---|---|
| The repository associated with this node. |
RepositoryOwner
Represents an owner of a Repository.
RepositoryOwner 的实现方式
RepositoryOwner 字段
| 名称 | 说明 |
|---|---|
| A URL pointing to the owner's public avatar.
|
| The Node ID of the RepositoryOwner object. |
| The username used to login. |
| A list of repositories that the user owns.
|
| Find Repository. |
| The HTTP URL for the owner. |
| The HTTP URL for the owner. |
RequirableByPullRequest
Represents a type that can be required by a pull request for merging.
RequirableByPullRequest 的实现方式
RequirableByPullRequest 字段
| 名称 | 说明 |
|---|---|
| Whether this is required to pass before merging for a specific pull request. |
Sponsorable
Entities that can sponsor or be sponsored through GitHub Sponsors.
Sponsorable 的实现方式
Sponsorable 字段
| 名称 | 说明 |
|---|---|
| The estimated next GitHub Sponsors payout for this user/organization in cents (USD). |
| True if this user/organization has a GitHub Sponsors listing. |
| Whether the given account is sponsoring this user/organization.
|
| True if the viewer is sponsored by this user/organization. |
| Calculate how much each sponsor has ever paid total to this maintainer via GitHub Sponsors. Does not include sponsorships paid via Patreon.
|
| The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). |
| List of users and organizations this entity is sponsoring.
|
| List of sponsors for this user or organization.
|
| Events involving this sponsorable, such as new sponsorships.
|
| The GitHub Sponsors listing for this user or organization. |
| The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.
|
| The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.
|
| List of sponsorship updates sent from this sponsorable to sponsors.
|
| The sponsorships where this user or organization is the maintainer receiving the funds.
|
| The sponsorships where this user or organization is the funder.
|
| The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization.
|
| Whether or not the viewer is able to sponsor this user/organization. |
| True if the viewer is sponsoring this user/organization. |
Starrable
Things that can be starred.
Starrable 的实现方式
Starrable 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the Starrable object. |
| Returns a count of how many stargazers there are on this object. |
| A list of users who have starred this starrable.
|
| Returns a boolean indicating whether the viewing user has starred this starrable. |
Subscribable
Entities that can be subscribed to for web and email notifications.
Subscribable 的实现方式
Subscribable 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the Subscribable object. |
| Check if the viewer is able to change their subscription status for the repository. |
| Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. |
SubscribableThread
Entities that can be subscribed to for web and email notifications.
SubscribableThread 的实现方式
SubscribableThread 字段
| 名称 | 说明 |
|---|---|
| The Node ID of the SubscribableThread object. |
| Identifies the viewer's thread subscription form action. |
| Identifies the viewer's thread subscription status. |
TeamAuditEntryData
Metadata for an audit entry with action team.*.
TeamAuditEntryData 的实现方式
OrgRestoreMemberMembershipTeamAuditEntryDataTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
TeamAuditEntryData 字段
| 名称 | 说明 |
|---|---|
| The team associated with the action. |
| The name of the team. |
| The HTTP path for this team. |
| The HTTP URL for this team. |
TopicAuditEntryData
Metadata for an audit entry with a topic.
UniformResourceLocatable
Represents a type that can be retrieved by a URL.
UniformResourceLocatable 的实现方式
BotCheckRunClosedEventCommitConvertToDraftEventCrossReferencedEventGistIssueMannequinMergedEventMilestoneOrganizationPullRequestPullRequestCommitReadyForReviewEventReleaseRepositoryRepositoryTopicReviewDismissedEventTeamDiscussionTeamDiscussionCommentUserWorkflowWorkflowRunWorkflowRunFile
UniformResourceLocatable 字段
| 名称 | 说明 |
|---|---|
| The HTML path to this resource. |
| The URL to this resource. |
Updatable
Entities that can be updated.
Updatable 的实现方式
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentProjectProjectV2PullRequestPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Updatable 字段
| 名称 | 说明 |
|---|---|
| Check if the current viewer can update this object. |
UpdatableComment
Comments that can be updated.
UpdatableComment 的实现方式
CommitCommentDiscussionCommentGistCommentIssueIssueCommentPullRequestPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
UpdatableComment 字段
| 名称 | 说明 |
|---|---|
| Reasons why the current viewer can not update this comment. |
Votable
A subject that may be upvoted.