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 "Implementation."
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.
Implemented by
Fields
| Name | Description |
|---|---|
| A list of Users assigned to this object. |
AuditEntry
An entry in the audit log.
Implemented by
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntry
Fields
| 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. |
Comment
Represents a comment.
Implemented by
CommitCommentDiscussionDiscussionCommentGistCommentIssueIssueCommentPullRequestPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Fields
| 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. |
| 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.
Implemented by
CreatedCommitContributionCreatedIssueContributionCreatedPullRequestContributionCreatedPullRequestReviewContributionCreatedRepositoryContributionJoinedGitHubContributionRestrictedContribution
Fields
| 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.
Implemented by
CommitCommentDiscussionDiscussionCommentGistCommentIssueCommentPullRequestReviewPullRequestReviewCommentTeamDiscussionTeamDiscussionComment
Fields
| Name | Description |
|---|---|
| Check if the current viewer can delete this object. |
EnterpriseAuditEntryData
Metadata for an audit entry containing enterprise account information.
Implemented by
MembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOrgInviteToBusinessAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntry
Fields
| Name | Description |
|---|---|
| The HTTP path for this enterprise. |
| The slug of the enterprise. |
| The HTTP URL for this enterprise. |
GitObject
Represents a Git object.
Implemented by
Fields
| Name | Description |
|---|---|
| An abbreviated version of the Git object ID. |
| The HTTP path for this Git object. |
| The HTTP URL for this Git 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.
Implemented by
Fields
| 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.
Implemented by
GenericHovercardContextOrganizationTeamsHovercardContextOrganizationsHovercardContextReviewStatusHovercardContextViewerHovercardContext
Fields
| Name | Description |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
Labelable
An object that can have labels assigned to it.
Implemented by
Fields
| Name | Description |
|---|---|
| A list of labels associated with the object. Arguments
|
Lockable
An object that can be locked.
Implemented by
Fields
| Name | Description |
|---|---|
| Reason that the conversation was locked. |
|
|
MemberStatusable
Entities that have members who can set status messages.
Implemented by
Fields
| Name | Description |
|---|---|
| Get the status messages members of this entity have set that are either public or visible only to the organization. Arguments
|
Minimizable
Entities that can be minimized.
Node
An object with an ID.
Implemented by
AddedToProjectEventAppAssignedEventAutoMergeDisabledEventAutoMergeEnabledEventAutoRebaseEnabledEventAutoSquashEnabledEventAutomaticBaseChangeFailedEventAutomaticBaseChangeSucceededEventBaseRefChangedEventBaseRefDeletedEventBaseRefForcePushedEventBlobBotBranchProtectionRuleCWECheckRunCheckSuiteClosedEventCodeOfConductCommentDeletedEventCommitCommitCommentCommitCommentThreadConnectedEventConvertToDraftEventConvertedNoteToIssueEventCrossReferencedEventDemilestonedEventDeployKeyDeployedEventDeploymentDeploymentEnvironmentChangedEventDeploymentProtectionRuleDeploymentReviewDeploymentStatusDisconnectedEventDiscussionDiscussionCategoryDiscussionCommentEnterpriseEnterpriseAdministratorInvitationEnterpriseIdentityProviderEnterpriseRepositoryInfoEnterpriseServerInstallationEnterpriseServerUserAccountEnterpriseServerUserAccountEmailEnterpriseServerUserAccountsUploadEnterpriseUserAccountEnvironmentExternalIdentityGistGistCommentHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEventIpAllowListEntryIssue