About interfaces
Interfaces serve as parent objects from which other objects can inherit.
For example, Lockable is an interface because both Issue and PullRequest objects can be locked. An interface has its own list of named fields that are shared by implementing objects.
For more information, see Introduction to GraphQL.
Actor
Represents an object which can take actions on GitHub. Typically a User or Bot.
Actor is implemented by
Fields for Actor
| Name | Description |
|---|---|
| A URL pointing to the actor's public avatar. Arguments for
|
| The username of the actor. |
| The HTTP path for this actor. |
| The HTTP URL for this actor. |
AnnouncementBanner
Represents an announcement banner.
AnnouncementBanner is implemented by
Fields for AnnouncementBanner
| Name | Description |
|---|---|
| The text of the announcement. |
| The expiration date of the announcement, if any. |
| Whether the announcement can be dismissed by the user. |
Assignable
An object that can have users assigned to it.
Assignable is implemented by
Fields for Assignable
| Name | Description |
|---|---|
| A list of Users assigned to this object. |
AuditEntry
An entry in the audit log.
AuditEntry is implemented by
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
Fields for AuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The corresponding operation type for the action. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
Closable
An object that can be closed.
Closable is implemented by
Fields for Closable
| Name | Description |
|---|---|
| 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 is implemented by
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentPullRequestPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Fields for Comment
| Name | Description |
|---|---|
| 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. |
| N/A |
| 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. Arguments for
|
| Did the viewer author this comment. |
Contribution
Represents a contribution a user made on GitHub, such as opening an issue.
Contribution is implemented by
CreatedCommitContributionCreatedIssueContributionCreatedPullRequestContributionCreatedPullRequestReviewContributionCreatedRepositoryContributionJoinedGitHubContributionRestrictedContribution
Fields for Contribution
| Name | Description |
|---|---|
| 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 is implemented by
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Fields for Deletable
| Name | Description |
|---|---|
| Check if the current viewer can delete this object. |
EnterpriseAuditEntryData
Metadata for an audit entry containing enterprise account information.
EnterpriseAuditEntryData is implemented by
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOrgInviteToBusinessAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntry
Fields for EnterpriseAuditEntryData
| Name | Description |
|---|---|
| The HTTP path for this enterprise. |
| The slug of the enterprise. |
| The HTTP URL for this enterprise. |
GitObject
Represents a Git object.
GitObject is implemented by
Fields for GitObject
| Name | Description |
|---|---|
| An abbreviated version of the Git object ID. |
| The HTTP path for this Git object. |
| The HTTP URL for this Git object. |
| N/A |
| 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 is implemented by
Fields for GitSignature
| Name | Description |
|---|---|
| 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. |
| True if the signature was made with GitHub's signing key. |
HovercardContext
An individual line of a hovercard.
HovercardContext is implemented by
GenericHovercardContextOrganizationTeamsHovercardContextOrganizationsHovercardContextReviewStatusHovercardContextViewerHovercardContext
Fields for HovercardContext
| Name | Description |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
Labelable
An object that can have labels assigned to it.
Labelable is implemented by
Fields for Labelable
| Name | Description |
|---|---|
| A list of labels associated with the object. |