关于接口
接口可作为供其他对象继承的父对象。
例如,Lockable是一个接口,� 为 Issue 和 PullRequest 对象都可以锁定。 接口拥有自己的指定字段列表,这些字段通过实现对象得以共享。
更多信息请参阅“实现。”
实施者
-
MembersCanDeleteReposClearAuditEntry -
MembersCanDeleteReposDisableAuditEntry -
MembersCanDeleteReposEnableAuditEntry -
OauthApplicationCreateAuditEntry -
OrgAddBillingManagerAuditEntry -
OrgAddMemberAuditEntry -
OrgBlockUserAuditEntry -
OrgConfigDisableCollaboratorsOnlyAuditEntry -
OrgConfigEnableCollaboratorsOnlyAuditEntry -
OrgCreateAuditEntry -
OrgDisableOauthAppRestrictionsAuditEntry -
OrgDisableSamlAuditEntry -
OrgDisableTwoFactorRequirementAuditEntry -
OrgEnableOauthAppRestrictionsAuditEntry -
OrgEnableSamlAuditEntry -
OrgEnableTwoFactorRequirementAuditEntry -
OrgInviteMemberAuditEntry -
OrgInviteToBusinessAuditEntry -
OrgOauthAppAccessApprovedAuditEntry -
OrgOauthAppAccessDeniedAuditEntry -
OrgOauthAppAccessRequestedAuditEntry -
OrgRemoveBillingManagerAuditEntry -
OrgRemoveMemberAuditEntry -
OrgRemoveOutsideCollaboratorAuditEntry -
OrgRestoreMemberAuditEntry -
OrgUnblockUserAuditEntry -
OrgUpdateDefaultRepositoryPermissionAuditEntry -
OrgUpdateMemberAuditEntry -
OrgUpdateMemberRepositoryCreationPermissionAuditEntry -
OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -
PrivateRepositoryForkingDisableAuditEntry -
PrivateRepositoryForkingEnableAuditEntry -
RepoAccessAuditEntry -
RepoAddMemberAuditEntry -
RepoAddTopicAuditEntry -
RepoArchivedAuditEntry -
RepoChangeMergeSettingAuditEntry -
RepoConfigDisableAnonymousGitAccessAuditEntry -
RepoConfigDisableCollaboratorsOnlyAuditEntry -
RepoConfigDisableContributorsOnlyAuditEntry -
RepoConfigDisableSockpuppetDisallowedAuditEntry -
RepoConfigEnableAnonymousGitAccessAuditEntry -
RepoConfigEnableCollaboratorsOnlyAuditEntry -
RepoConfigEnableContributorsOnlyAuditEntry -
RepoConfigEnableSockpuppetDisallowedAuditEntry -
RepoConfigLockAnonymousGitAccessAuditEntry -
RepoConfigUnlockAnonymousGitAccessAuditEntry -
RepoCreateAuditEntry -
RepoDestroyAuditEntry -
RepoRemoveMemberAuditEntry -
RepoRemoveTopicAuditEntry -
RepositoryVisibilityChangeDisableAuditEntry -
RepositoryVisibilityChangeEnableAuditEntry -
TeamAddMemberAuditEntry -
TeamAddRepositoryAuditEntry -
TeamChangeParentTeamAuditEntry -
TeamRemoveMemberAuditEntry -
TeamRemoveRepositoryAuditEntry
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
-
CommitComment -
GistComment -
Issue -
IssueComment -
PullRequest -
PullRequestReview -
PullRequestReviewComment -
TeamDiscussion -
TeamDiscussionComment
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
-
CreatedCommitContribution -
CreatedIssueContribution -
CreatedPullRequestContribution -
CreatedPullRequestReviewContribution -
CreatedRepositoryContribution -
JoinedGitHubContribution -
RestrictedContribution
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
-
CommitComment -
GistComment -
IssueComment -
PullRequestReview -
PullRequestReviewComment -
TeamDiscussion -
TeamDiscussionComment
字段
| 名称 | 描述 |
|---|---|
| Check if the current viewer can delete this object. |
实施者
-
MembersCanDeleteReposClearAuditEntry -
MembersCanDeleteReposDisableAuditEntry -
MembersCanDeleteReposEnableAuditEntry -
OrgInviteToBusinessAuditEntry -
PrivateRepositoryForkingDisableAuditEntry -
PrivateRepositoryForkingEnableAuditEntry -
RepositoryVisibilityChangeDisableAuditEntry -
RepositoryVisibilityChangeEnableAuditEntry
字段
| 名称 | 描述 |
|---|---|
| The HTTP path for this enterprise. |
| The slug of the enterprise. |
| The HTTP URL for this enterprise. |
实施者
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
-
GenericHovercardContext -
OrganizationTeamsHovercardContext -
OrganizationsHovercardContext -
ReviewStatusHovercardContext -
ViewerHovercardContext
字段
| 名称 | 描述 |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
实施者
字段
| 名称 | 描述 |
|---|---|
| A list of labels associated with the object. 参数
|
实施者
字段
| 名称 | 描述 |
|---|---|
| Reason that the conversation was locked. |
|
|
实施者
字段
| 名称 | 描述 |
|---|---|
| Get the status messages members of this entity have set that are either public or visible only to the organization. 参数
|
实施者
-
AddedToProjectEvent -
App -
AssignedEvent -
AutoMergeDisabledEvent -
AutoMergeEnabledEvent -
AutoRebaseEnabledEvent -
AutoSquashEnabledEvent -
AutomaticBaseChangeFailedEvent -
AutomaticBaseChangeSucceededEvent -
BaseRefChangedEvent -
BaseRefDeletedEvent -
BaseRefForcePushedEvent -
Blob -
Bot -
BranchProtectionRule -
CWE -
CheckRun -
CheckSuite -
ClosedEvent -
CodeOfConduct -
CommentDeletedEvent -
Commit -
CommitComment -
CommitCommentThread -
ConnectedEvent -
ConvertToDraftEvent -
ConvertedNoteToIssueEvent -
CrossReferencedEvent -
DemilestonedEvent -
DeployKey -
DeployedEvent -
Deployment -
DeploymentEnvironmentChangedEvent -
DeploymentStatus -
DisconnectedEvent -
Enterprise -
EnterpriseAdministratorInvitation -
EnterpriseIdentityProvider -
EnterpriseRepositoryInfo -
EnterpriseServerInstallation -
EnterpriseServerUserAccount -
EnterpriseServerUserAccountEmail -
EnterpriseServerUserAccountsUpload -
EnterpriseUserAccount -
ExternalIdentity -
Gist -
GistComment -
HeadRefDeletedEvent -
HeadRefForcePushedEvent -
HeadRefRestoredEvent -
IpAllowListEntry -
Issue -
IssueComment -
Label -
LabeledEvent -
Language -
License -
LockedEvent -
Mannequin -
MarkedAsDuplicateEvent -
MembersCanDeleteReposClearAuditEntry -
MembersCanDeleteReposDisableAuditEntry -
MembersCanDeleteReposEnableAuditEntry -
MentionedEvent -
MergedEvent -
Milestone -
MilestonedEvent -
MovedColumnsInProjectEvent -
OauthApplicationCreateAuditEntry -
OrgAddBillingManagerAuditEntry -
OrgAddMemberAuditEntry -
OrgBlockUserAuditEntry -
OrgConfigDisableCollaboratorsOnlyAuditEntry -
OrgConfigEnableCollaboratorsOnlyAuditEntry -
OrgCreateAuditEntry -
OrgDisableOauthAppRestrictionsAuditEntry -
OrgDisableSamlAuditEntry -
OrgDisableTwoFactorRequirementAuditEntry -
OrgEnableOauthAppRestrictionsAuditEntry -
OrgEnableSamlAuditEntry -
OrgEnableTwoFactorRequirementAuditEntry -
OrgInviteMemberAuditEntry -
OrgInviteToBusinessAuditEntry -
OrgOauthAppAccessApprovedAuditEntry -
OrgOauthAppAccessDeniedAuditEntry -
OrgOauthAppAccessRequestedAuditEntry -
OrgRemoveBillingManagerAuditEntry -
OrgRemoveMemberAuditEntry -
OrgRemoveOutsideCollaboratorAuditEntry -
OrgRestoreMemberAuditEntry -
OrgUnblockUserAuditEntry -
OrgUpdateDefaultRepositoryPermissionAuditEntry -
OrgUpdateMemberAuditEntry -
OrgUpdateMemberRepositoryCreationPermissionAuditEntry -
OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -
Organization -
OrganizationIdentityProvider -
OrganizationInvitation -
Package -
PackageFile -
PackageTag -
PackageVersion -
PinnedEvent -
PinnedIssue -
PrivateRepositoryForkingDisableAuditEntry -
PrivateRepositoryForkingEnableAuditEntry -
Project -
ProjectCard -
ProjectColumn -
PublicKey -
PullRequest -
PullRequestCommit -
PullRequestCommitCommentThread -
PullRequestReview -
PullRequestReviewComment -
PullRequestReviewThread -
Push -
PushAllowance -
Reaction -
ReadyForReviewEvent -
Ref -
ReferencedEvent -
Release -
ReleaseAsset -
RemovedFromProjectEvent -
RenamedTitleEvent -
ReopenedEvent -
RepoAccessAuditEntry -
RepoAddMemberAuditEntry -
RepoAddTopicAuditEntry -
RepoArchivedAuditEntry -
RepoChangeMergeSettingAuditEntry -
RepoConfigDisableAnonymousGitAccessAuditEntry -
RepoConfigDisableCollaboratorsOnlyAuditEntry -
RepoConfigDisableContributorsOnlyAuditEntry -
RepoConfigDisableSockpuppetDisallowedAuditEntry -
RepoConfigEnableAnonymousGitAccessAuditEntry -
RepoConfigEnableCollaboratorsOnlyAuditEntry -
RepoConfigEnableContributorsOnlyAuditEntry -
RepoConfigEnableSockpuppetDisallowedAuditEntry -
RepoConfigLockAnonymousGitAccessAuditEntry -
RepoConfigUnlockAnonymousGitAccessAuditEntry -
RepoCreateAuditEntry -
RepoDestroyAuditEntry -
RepoRemoveMemberAuditEntry -
RepoRemoveTopicAuditEntry -
Repository -
RepositoryInvitation -
RepositoryTopic -
RepositoryVisibilityChangeDisableAuditEntry -
RepositoryVisibilityChangeEnableAuditEntry -
RepositoryVulnerabilityAlert -
ReviewDismissalAllowance -
ReviewDismissedEvent -
ReviewRequest -
ReviewRequestRemovedEvent -
ReviewRequestedEvent -
SavedReply -
SecurityAdvisory -
Sponsorship -
Status -
StatusCheckRollup -
StatusContext -
SubscribedEvent -
Tag -
Team -
TeamAddMemberAuditEntry -
TeamAddRepositoryAuditEntry -
TeamChangeParentTeamAuditEntry -
TeamDiscussion -
TeamDiscussionComment -
TeamRemoveMemberAuditEntry -
TeamRemoveRepositoryAuditEntry -
Topic -
TransferredEvent -
Tree -
UnassignedEvent -
UnlabeledEvent -
UnlockedEvent -
UnmarkedAsDuplicateEvent -
UnpinnedEvent -
UnsubscribedEvent -
User -
UserBlockedEvent -
UserContentEdit -
UserStatus -
VerifiableDomain
字段
| 名称 | 描述 |
|---|---|
| ID of the object. |
实施者
-
OauthApplicationCreateAuditEntry -
OrgOauthAppAccessApprovedAuditEntry -
OrgOauthAppAccessDeniedAuditEntry -
OrgOauthAppAccessRequestedAuditEntry
字段
| 名称 | 描述 |
|---|---|
| The name of the OAuth Application. |
| The HTTP path for the OAuth Application. |
| The HTTP URL for the OAuth Application. |
实施者
-
MembersCanDeleteReposClearAuditEntry -
MembersCanDeleteReposDisableAuditEntry -
MembersCanDeleteReposEnableAuditEntry -
OauthApplicationCreateAuditEntry -
OrgAddBillingManagerAuditEntry -
OrgAddMemberAuditEntry -
OrgBlockUserAuditEntry -
OrgConfigDisableCollaboratorsOnlyAuditEntry -
OrgConfigEnableCollaboratorsOnlyAuditEntry -
OrgCreateAuditEntry -
OrgDisableOauthAppRestrictionsAuditEntry -
OrgDisableSamlAuditEntry -
OrgDisableTwoFactorRequirementAuditEntry -
OrgEnableOauthAppRestrictionsAuditEntry -
OrgEnableSamlAuditEntry -
OrgEnableTwoFactorRequirementAuditEntry -
OrgInviteMemberAuditEntry -
OrgInviteToBusinessAuditEntry -
OrgOauthAppAccessApprovedAuditEntry -
OrgOauthAppAccessDeniedAuditEntry -
OrgOauthAppAccessRequestedAuditEntry -
OrgRemoveBillingManagerAuditEntry -
OrgRemoveMemberAuditEntry -
OrgRemoveOutsideCollaboratorAuditEntry -
OrgRestoreMemberAuditEntry -
OrgRestoreMemberMembershipOrganizationAuditEntryData -
OrgUnblockUserAuditEntry -
OrgUpdateDefaultRepositoryPermissionAuditEntry -
OrgUpdateMemberAuditEntry -
OrgUpdateMemberRepositoryCreationPermissionAuditEntry -
OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -
PrivateRepositoryForkingDisableAuditEntry -
PrivateRepositoryForkingEnableAuditEntry -
RepoAccessAuditEntry -
RepoAddMemberAuditEntry -
RepoAddTopicAuditEntry -
RepoArchivedAuditEntry -
RepoChangeMergeSettingAuditEntry -
RepoConfigDisableAnonymousGitAccessAuditEntry -
RepoConfigDisableCollaboratorsOnlyAuditEntry -
RepoConfigDisableContributorsOnlyAuditEntry -
RepoConfigDisableSockpuppetDisallowedAuditEntry -
RepoConfigEnableAnonymousGitAccessAuditEntry -
RepoConfigEnableCollaboratorsOnlyAuditEntry -
RepoConfigEnableContributorsOnlyAuditEntry -
RepoConfigEnableSockpuppetDisallowedAuditEntry -
RepoConfigLockAnonymousGitAccessAuditEntry -
RepoConfigUnlockAnonymousGitAccessAuditEntry -
RepoCreateAuditEntry -
RepoDestroyAuditEntry -
RepoRemoveMemberAuditEntry -
RepoRemoveTopicAuditEntry -
RepositoryVisibilityChangeDisableAuditEntry -
RepositoryVisibilityChangeEnableAuditEntry -
TeamAddMemberAuditEntry -
TeamAddRepositoryAuditEntry -
TeamChangeParentTeamAuditEntry -
TeamRemoveMemberAuditEntry -
TeamRemoveRepositoryAuditEntry
字段
| 名称 | 描述 |
|---|---|
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
实施者
字段
| 名称 | 描述 |
|---|---|
| A list of packages under the owner. 参数
|
实施者
字段
| 名称 | 描述 |
|---|---|
| Determine if this repository owner has any items that can be pinned to their profile. 参数
|
| The public profile email. |
| 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. |
实施者
字段
| 名称 | 描述 |
|---|---|
| Find project by number. 参数
|
| A list of projects under the owner. 参数
|
| The HTTP path listing owners projects. |
| The HTTP URL listing owners projects. |
| Can the current viewer create new projects on this owner. |
实施者
-
CommitComment -
Issue -
IssueComment -
PullRequest -
PullRequestReview -
PullRequestReviewComment -
TeamDiscussion -
TeamDiscussionComment
字段
| 名称 | 描述 |
|---|---|
| Identifies the primary key from the database. |
| 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. |
实施者
-
OrgRestoreMemberMembershipRepositoryAuditEntryData -
PrivateRepositoryForkingDisableAuditEntry -
PrivateRepositoryForkingEnableAuditEntry -
RepoAccessAuditEntry -
RepoAddMemberAuditEntry -
RepoAddTopicAuditEntry -
RepoArchivedAuditEntry -
RepoChangeMergeSettingAuditEntry -
RepoConfigDisableAnonymousGitAccessAuditEntry -
RepoConfigDisableCollaboratorsOnlyAuditEntry -
RepoConfigDisableContributorsOnlyAuditEntry -
RepoConfigDisableSockpuppetDisallowedAuditEntry -
RepoConfigEnableAnonymousGitAccessAuditEntry -
RepoConfigEnableCollaboratorsOnlyAuditEntry -
RepoConfigEnableContributorsOnlyAuditEntry -
RepoConfigEnableSockpuppetDisallowedAuditEntry -
RepoConfigLockAnonymousGitAccessAuditEntry -
RepoConfigUnlockAnonymousGitAccessAuditEntry -
RepoCreateAuditEntry -
RepoDestroyAuditEntry -
RepoRemoveMemberAuditEntry -
RepoRemoveTopicAuditEntry -
TeamAddRepositoryAuditEntry -
TeamRemoveRepositoryAuditEntry
字段
| 名称 | 描述 |
|---|---|
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
实施者
字段
| 名称 | 描述 |
|---|---|
| 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 anonymous Git read access feature enabled. |
| Indicates if the repository has issues feature enabled. |
| Indicates if the repository has the Projects feature enabled. |
| 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. |
| 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 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. |
实施者
-
CommitComment -
CommitCommentThread -
Issue -
IssueComment -
PullRequest -
PullRequestCommitCommentThread -
PullRequestReview -
PullRequestReviewComment -
RepositoryVulnerabilityAlert
字段
| 名称 | 描述 |
|---|---|
| The repository associated with this node. |
实施者
字段
| 名称 | 描述 |
|---|---|
| A URL pointing to the owner's public avatar. 参数
|
| 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. |
实施者
字段
| 名称 | 描述 |
|---|---|
| This object's sponsorships as the maintainer. 参数
|
| This object's sponsorships as the sponsor. 参数
|
实施者
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
字段
| 名称 | 描述 |
|---|---|
| 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. |
实施者
-
OrgRestoreMemberMembershipTeamAuditEntryData -
TeamAddMemberAuditEntry -
TeamAddRepositoryAuditEntry -
TeamChangeParentTeamAuditEntry -
TeamRemoveMemberAuditEntry -
TeamRemoveRepositoryAuditEntry
字段
| 名称 | 描述 |
|---|---|
| The team associated with the action. |
| The name of the team. |
| The HTTP path for this team. |
| The HTTP URL for this team. |
实施者
-
Bot -
CheckRun -
ClosedEvent -
Commit -
ConvertToDraftEvent -
CrossReferencedEvent -
Gist -
Issue -
Mannequin -
MergedEvent -
Milestone -
Organization -
PullRequest -
PullRequestCommit -
ReadyForReviewEvent -
Release -
Repository -
RepositoryTopic -
ReviewDismissedEvent -
TeamDiscussion -
TeamDiscussionComment -
User
字段
| 名称 | 描述 |
|---|---|
| The HTML path to this resource. |
| The URL to this resource. |
实施者
-
CommitComment -
GistComment -
Issue -
IssueComment -
Project -
PullRequest -
PullRequestReview -
PullRequestReviewComment -
TeamDiscussion -
TeamDiscussionComment
字段
| 名称 | 描述 |
|---|---|
| Check if the current viewer can update this object. |
实施者
-
CommitComment -
GistComment -
Issue -
IssueComment -
PullRequest -
PullRequestReview -
PullRequestReviewComment -
TeamDiscussion -
TeamDiscussionComment
字段
| 名称 | 描述 |
|---|---|
| Reasons why the current viewer can not update this comment. |