Queries
codeOfConduct
Look up a code of conduct by its key.
类型: CodeOfConduct
codeOfConduct 的参数
| 名称 | 说明 |
|---|---|
| The code of conduct's key. |
codesOfConduct
Look up a code of conduct by its key.
类型: [CodeOfConduct]
meta
Return information about the GitHub instance.
类型: GitHubMetadata!
node
Fetches an object given its ID.
类型: Node
node 的参数
| 名称 | 说明 |
|---|---|
| ID of the object. |
nodes
Lookup nodes by a list of IDs.
类型: [Node]!
nodes 的参数
| 名称 | 说明 |
|---|---|
| The list of node IDs. |
rateLimit
The client's rate limit information.
类型: RateLimit
rateLimit 的参数
| 名称 | 说明 |
|---|---|
| If true, calculate the cost for the query without evaluating it. The default value is |
resource
Lookup resource by a URL.
resource 的参数
| 名称 | 说明 |
|---|---|
| The URL. |
Objects
CodeOfConduct
The Code of Conduct for a repository.
CodeOfConduct 实现
CodeOfConduct 字段
| 名称 | 说明 |
|---|---|
| The body of the Code of Conduct. |
| The Node ID of the CodeOfConduct object. |
| The key for the Code of Conduct. |
| The formal name of the Code of Conduct. |
| The HTTP path for this Code of Conduct. |
| The HTTP URL for this Code of Conduct. |
GitHubMetadata
Represents information about the GitHub instance.
GitHubMetadata 字段
| 名称 | 说明 |
|---|---|
| Returns a String that's a SHA of |
| Whether or not users are verified. |
RateLimit
Represents the client's rate limit.
RateLimit 字段
| 名称 | 说明 |
|---|---|
| The point cost for the current query counting against the rate limit. |
| The maximum number of points the client is permitted to consume in a 60 minute window. |
| The maximum number of nodes this query may return. |
| The number of points remaining in the current rate limit window. |
| The time at which the current rate limit window resets in UTC epoch seconds. |
| The number of points used in the current rate limit window. |
Interfaces
Node
An object with an ID.
Node 的实现方式
WorkflowWorkflowRunWorkflowRunFileAppBotBranchProtectionRuleBypassForcePushAllowanceBypassPullRequestAllowancePushAllowanceReviewDismissalAllowanceCheckRunCheckSuiteCommitCommitCommentCommitCommentThreadComparisonStatusStatusCheckRollupStatusContextRepositoryVulnerabilityAlertDependencyGraphManifestDeployKeyDeployedEventDeploymentDeploymentEnvironmentChangedEventDeploymentReviewDeploymentStatusEnvironmentPinnedEnvironmentDiscussionDiscussionCategoryDiscussionCommentDiscussionPollDiscussionPollOptionPinnedDiscussionEnterpriseEnterpriseAdministratorInvitationEnterpriseIdentityProviderEnterpriseMemberInvitationEnterpriseRepositoryInfoEnterpriseServerInstallationEnterpriseServerUserAccountEnterpriseServerUserAccountEmailEnterpriseServerUserAccountsUploadEnterpriseUserAccountExternalIdentityIpAllowListEntryMembersCanDeleteReposClearAuditEntryMembersCanDeleteReposDisableAuditEntryMembersCanDeleteReposEnableAuditEntryOauthApplicationCreateAuditEntryPrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryRepositoryVisibilityChangeDisableAuditEntryRepositoryVisibilityChangeEnableAuditEntryUserNamespaceRepositoryGistGistCommentBlobPushRefTagTreeAssignedEventBlockedByAddedEventBlockedByRemovedEventBlockingAddedEventBlockingRemovedEventClosedEventCommentDeletedEventConnectedEventConvertedNoteToIssueEventConvertedToDiscussionEventCrossReferencedEventDemilestonedEventDisconnectedEventIssueIssueCommentIssueCommentPinnedEventIssueCommentUnpinnedEventIssueFieldDateIssueFieldDateValueIssueFieldNumberIssueFieldNumberValueIssueFieldSingleSelectIssueFieldSingleSelectOptionIssueFieldSingleSelectValueIssueFieldTextIssueFieldTextValueIssueTypeIssueTypeAddedEventIssueTypeChangedEventIssueTypeRemovedEventLabelLabeledEventLinkedBranchLockedEventMarkedAsDuplicateEventMentionedEventMilestoneMilestonedEventParentIssueAddedEventParentIssueRemovedEventPinnedEventPinnedIssuePinnedIssueCommentReferencedEventRenamedTitleEventReopenedEventSubIssueAddedEventSubIssueRemovedEventSubscribedEventTransferredEventUnassignedEventUnlabeledEventUnlockedEventUnmarkedAsDuplicateEventUnpinnedEventUnsubscribedEventLicenseCodeOfConductMannequinMigrationSourceOrganizationMigrationRepositoryMigrationMemberFeatureRequestNotificationOrgAddBillingManagerAuditEntryOrgAddMemberAuditEntryOrgBlockUserAuditEntryOrgConfigDisableCollaboratorsOnlyAuditEntryOrgConfigEnableCollaboratorsOnlyAuditEntryOrgCreateAuditEntryOrgDisableOauthAppRestrictionsAuditEntryOrgDisableSamlAuditEntryOrgDisableTwoFactorRequirementAuditEntryOrgEnableOauthAppRestrictionsAuditEntryOrgEnableSamlAuditEntryOrgEnableTwoFactorRequirementAuditEntryOrgInviteMemberAuditEntryOrgInviteToBusinessAuditEntryOrgOauthAppAccessApprovedAuditEntryOrgOauthAppAccessBlockedAuditEntryOrgOauthAppAccessDeniedAuditEntryOrgOauthAppAccessRequestedAuditEntryOrgOauthAppAccessUnblockedAuditEntryOrgRemoveBillingManagerAuditEntryOrgRemoveMemberAuditEntryOrgRemoveOutsideCollaboratorAuditEntryOrgRestoreMemberAuditEntryOrgUnblockUserAuditEntryOrgUpdateDefaultRepositoryPermissionAuditEntryOrgUpdateMemberAuditEntryOrgUpdateMemberRepositoryCreationPermissionAuditEntryOrgUpdateMemberRepositoryInvitationPermissionAuditEntryOrganizationOrganizationIdentityProviderOrganizationInvitationVerifiableDomainPackagePackageFilePackageTagPackageVersionAddedToProjectV2EventDraftIssueProjectV2ProjectV2FieldProjectV2ItemProjectV2ItemFieldDateValueProjectV2ItemFieldIterationValueProjectV2ItemFieldNumberValueProjectV2ItemFieldSingleSelectValueProjectV2ItemFieldTextValueProjectV2ItemStatusChangedEventProjectV2IterationFieldProjectV2SingleSelectFieldProjectV2StatusUpdateProjectV2ViewProjectV2WorkflowRemovedFromProjectV2EventAddedToProjectEventMovedColumnsInProjectEventProjectProjectCardProjectColumnRemovedFromProjectEventAddedToMergeQueueEventAutoMergeDisabledEventAutoMergeEnabledEventAutoRebaseEnabledEventAutoSquashEnabledEventAutomaticBaseChangeFailedEventAutomaticBaseChangeSucceededEventBaseRefChangedEventBaseRefDeletedEventBaseRefForcePushedEventConvertToDraftEventConvertedFromDraftEventHeadRefDeletedEventHeadRefForcePushedEventHeadRefRestoredEventMergeQueueMergeQueueEntryMergedEventPullRequestPullRequestCommitPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewCommentPullRequestReviewThreadPullRequestThreadReadyForReviewEventRemovedFromMergeQueueEventReviewDismissedEventReviewRequestReviewRequestRemovedEventReviewRequestedEventReactionReleaseReleaseAssetLanguageRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryRepositoryRepositoryCustomPropertyRepositoryInvitationRepositoryRuleRepositoryRulesetRepositoryRulesetBypassActorRepositoryTopicTopicCWESecurityAdvisoryTeamTeamAddMemberAuditEntryTeamAddRepositoryAuditEntryTeamChangeParentTeamAuditEntryTeamRemoveMemberAuditEntryTeamRemoveRepositoryAuditEntryPublicKeySavedReplyUserUserBlockedEventUserContentEditUserListUserStatus
Node 字段
| 名称 | 说明 |
|---|---|
| ID of the object. |
UniformResourceLocatable
Represents a type that can be retrieved by a URL.
UniformResourceLocatable 的实现方式
WorkflowWorkflowRunWorkflowRunFileBotCheckRunCommitGistClosedEventCrossReferencedEventIssueMilestoneMannequinOrganizationConvertToDraftEventMergedEventPullRequestPullRequestCommitReadyForReviewEventReviewDismissedEventReleaseRepositoryRepositoryTopicUser
UniformResourceLocatable 字段
| 名称 | 说明 |
|---|---|
| The HTML path to this resource. |
| The URL to this resource. |
Enums
OperationType
The corresponding operation type for the action.
OperationType 的值
| 名称 | 说明 |
|---|---|
ACCESS | An existing resource was accessed. |
AUTHENTICATION | A resource performed an authentication event. |
CREATE | A new resource was created. |
MODIFY | An existing resource was modified. |
REMOVE | An existing resource was removed. |
RESTORE | An existing resource was restored. |
TRANSFER | An existing resource was transferred between multiple resources. |
OrderDirection
Possible directions in which to order a list of items when provided an orderBy argument.
OrderDirection 的值
| 名称 | 说明 |
|---|---|
ASC | Specifies an ascending order for a given |
DESC | Specifies a descending order for a given |
ReportedContentClassifiers
The reasons a piece of content can be reported or minimized.
ReportedContentClassifiers 的值
| 名称 | 说明 |
|---|---|
DUPLICATE | A duplicated piece of content. |
OFF_TOPIC | An irrelevant piece of content. |
OUTDATED | An outdated piece of content. |
RESOLVED | The content has been resolved. |