Queries
user
Lookup a user by login.
类型: User
user 的参数
| 名称 | 说明 |
|---|---|
| The user's login. |
users
A list of users.
类型: UserConnection!
users 的参数
| 名称 | 说明 |
|---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
viewer
The currently authenticated user.
类型: User!
Mutations
changeUserStatus
Update your status on GitHub.
输入 changeUserStatus 字段
input(ChangeUserStatusInput!)
返回 changeUserStatus 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| Your updated status. |
createUserList
Creates a new user list.
输入 createUserList 字段
input(CreateUserListInput!)
返回 createUserList 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The list that was just created. |
| The user who created the list. |
deleteUserList
Deletes a user list.
输入 deleteUserList 字段
input(DeleteUserListInput!)
返回 deleteUserList 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The owner of the list that will be deleted. |
followUser
Follow a user.
输入 followUser 字段
input(FollowUserInput!)
返回 followUser 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The user that was followed. |
unfollowUser
Unfollow a user.
输入 unfollowUser 字段
input(UnfollowUserInput!)
返回 unfollowUser 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The user that was unfollowed. |
updateUserList
Updates an existing user list.
输入 updateUserList 字段
input(UpdateUserListInput!)
返回 updateUserList 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The list that was just updated. |
updateUserListsForItem
Updates which of the viewer's lists an item belongs to.
输入 updateUserListsForItem 字段
input(UpdateUserListsForItemInput!)
返回 updateUserListsForItem 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The item that was added. |
| The lists to which this item belongs. |
| The user who owns the lists. |
Objects
ActorConnection
The connection type for Actor.
ActorConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
ActorEdge
An edge in a connection.
ActorEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
ActorLocation
Location information for an actor.
ActorLocation 字段
| 名称 | 说明 |
|---|---|
| City. |
| Country name. |
| Country code. |
| Region name. |
| Region or state code. |
ContributionCalendar
A calendar of contributions made on GitHub by a user.
ContributionCalendar 字段
| 名称 | 说明 |
|---|---|
| A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. |
| Determine if the color set was chosen because it's currently Halloween. |
| A list of the months of contributions in this calendar. |
| The count of total contributions in the calendar. |
| A list of the weeks of contributions in this calendar. |
ContributionCalendarDay
Represents a single day of contributions on GitHub by a user.
ContributionCalendarDay 字段
| 名称 | 说明 |
|---|---|
| The hex color code that represents how many contributions were made on this day compared to others in the calendar. |
| How many contributions were made by the user on this day. |
| Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar. |
| The day this square represents. |
| A number representing which day of the week this square represents, e.g., 1 is Monday. |
ContributionCalendarMonth
A month of contributions in a user's contribution graph.
ContributionCalendarMonth 字段
| 名称 | 说明 |
|---|---|
| The date of the first day of this month. |
| The name of the month. |
| How many weeks started in this month. |
| The year the month occurred in. |
ContributionCalendarWeek
A week of contributions in a user's contribution graph.
ContributionCalendarWeek 字段
| 名称 | 说明 |
|---|---|
| The days of contributions in this week. |
| The date of the earliest square in this week. |
ContributionsCollection
A collection of contributions made by a user, including opened issues, commits, and pull requests. Contributions in private and internal repositories are only included with the optional read:user scope.
ContributionsCollection 字段
| 名称 | 说明 |
|---|---|
| Commit contributions made by the user, grouped by repository.
|
| A calendar of this user's contributions on GitHub. |
| The years the user has been making contributions with the most recent year first. |
| Determine if this collection's time span ends in the current month. |
| The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. |
| The ending date and time of this collection. |
| The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. |
| The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. |
| The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned. |
| Does the user have any more activity in the timeline that occurred prior to the collection's time range?. |
| Determine if there are any contributions in this collection. |
| Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts. |
| Whether or not the collector's time span is all within the same day. |
| A list of issues the user opened.
|
| Issue contributions made by the user, grouped by repository.
|
| When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false. |
| The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. |
| When this collection's time range does not include any activity from the user, use this to get a different collection from an earlier time range that does have activity. |
| Returns a different contributions collection from an earlier time range than this one that does not have any contributions. |
| The issue the user opened on GitHub that received the most comments in the specified time frame. |
| The pull request the user opened on GitHub that received the most comments in the specified time frame. |
| Pull request contributions made by the user.
|
| Pull request contributions made by the user, grouped by repository.
|
| Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user.
|
| Pull request review contributions made by the user, grouped by repository.
|
| A list of repositories owned by the user that the user created in this time range.
|
| A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts. |
| The beginning date and time of this collection. |
| How many commits were made by the user in this time span. |
| How many issues the user opened. |
| How many pull requests the user opened. |
| How many pull request reviews the user left. |
| How many different repositories the user committed to. |
| How many different repositories the user opened issues in. |
| How many different repositories the user left pull request reviews in. |
| How many different repositories the user opened pull requests in. |
| How many repositories the user created.
|
| The user who made the contributions in this collection. |
CreatedCommitContribution
Represents the contribution a user made by committing to a repository.
CreatedCommitContribution 实现
CreatedCommitContribution 字段
| 名称 | 说明 |
|---|---|
| How many commits were made on this day to this repository by the user. |
| 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 repository the user made a commit in. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
CreatedCommitContributionConnection
The connection type for CreatedCommitContribution.
CreatedCommitContributionConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of commits across days and repositories in the connection. |
CreatedCommitContributionEdge
An edge in a connection.
CreatedCommitContributionEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
CreatedIssueContribution
Represents the contribution a user made on GitHub by opening an issue.
CreatedIssueContribution 实现
CreatedIssueContribution 字段
| 名称 | 说明 |
|---|---|
| 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. |
| The issue that was opened. |
| When this contribution was made. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
CreatedIssueContributionConnection
The connection type for CreatedIssueContribution.
CreatedIssueContributionConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
CreatedIssueContributionEdge
An edge in a connection.
CreatedIssueContributionEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
CreatedPullRequestContribution
Represents the contribution a user made on GitHub by opening a pull request.
CreatedPullRequestContribution 实现
CreatedPullRequestContribution 字段
| 名称 | 说明 |
|---|---|
| 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 pull request that was opened. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
CreatedPullRequestContributionConnection
The connection type for CreatedPullRequestContribution.
CreatedPullRequestContributionConnection 字段
| 名称 | 说明 |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
CreatedPullRequestContributionEdge
An edge in a connection.
CreatedPullRequestContributionEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
The item at the end of the edge. |
CreatedPullRequestReviewContribution
Represents the contribution a user made by leaving a review on a pull request.
CreatedPullRequestReviewContribution 实现
CreatedPullRequestReviewContribution 字段
| 名称 | 说明 |
|---|---|
| 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 pull request the user reviewed. |
| The review the user left on the pull request. |
| The repository containing the pull request that the user reviewed. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
CreatedPullRequestReviewContributionConnection
The connection type for CreatedPullRequestReviewContribution.
CreatedPullRequestReviewContributionConnection 字段
| 名称 | 说明 |
|---|---|
A list of edges. | |
A list of nodes. | |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
CreatedPullRequestReviewContributionEdge
An edge in a connection.
CreatedPullRequestReviewContributionEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
The item at the end of the edge. |
CreatedRepositoryContribution
Represents the contribution a user made on GitHub by creating a repository.
CreatedRepositoryContribution 实现
CreatedRepositoryContribution 字段
| 名称 | 说明 |
|---|---|
| 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 repository that was created. |
| The HTTP path for this contribution. |
| The HTTP URL for this contribution. |
| The user who made this contribution. |
CreatedRepositoryContributionConnection
The connection type for CreatedRepositoryContribution.
CreatedRepositoryContributionConnection 字段
| 名称 | 说明 |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
CreatedRepositoryContributionEdge
An edge in a connection.
CreatedRepositoryContributionEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
The item at the end of the edge. |
EnterpriseAdministratorConnection
The connection type for User.
EnterpriseAdministratorConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
EnterpriseAdministratorEdge
A User who is an administrator of an enterprise.
EnterpriseAdministratorEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
| The role of the administrator. |
EnterpriseOutsideCollaboratorConnection
The connection type for User.
EnterpriseOutsideCollaboratorConnection 字段
| 名称 | 说明 |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
EnterpriseOutsideCollaboratorEdge
A User who is an outside collaborator of an enterprise through one or more organizations.
EnterpriseOutsideCollaboratorEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
| The enterprise organization repositories this user is a member of.
|
FollowerConnection
The connection type for User.
FollowerConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
FollowingConnection
The connection type for User.
FollowingConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
GenericHovercardContext
A generic hovercard context with a message and icon.
GenericHovercardContext 实现
GenericHovercardContext 字段
| 名称 | 说明 |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
Hovercard
Detail needed to display a hovercard for a user.
Hovercard 字段
| 名称 | 说明 |
|---|---|
| Each of the contexts for this hovercard. |
JoinedGitHubContribution
Represents a user signing up for a GitHub account.
JoinedGitHubContribution 实现
JoinedGitHubContribution 字段
| 名称 | 说明 |
|---|---|
| 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. |
OrganizationEnterpriseOwnerConnection
The connection type for User.
OrganizationEnterpriseOwnerConnection 字段
| 名称 | 说明 |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
OrganizationEnterpriseOwnerEdge
An enterprise owner in the context of an organization that is part of the enterprise.
OrganizationEnterpriseOwnerEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
| The role of the owner with respect to the organization. |
OrganizationMemberConnection
A list of users who belong to the organization.
OrganizationMemberConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
OrganizationMemberEdge
Represents a user within an organization.
OrganizationMemberEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. |
| The item at the end of the edge. |
| The role this user has in the organization. |
PinnableItemConnection
The connection type for PinnableItem.
PinnableItemConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
PinnableItemEdge
An edge in a connection.
PinnableItemEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
ProfileItemShowcase
A curatable list of repositories relating to a repository owner, which defaults to showing the most popular repositories they own.
ProfileItemShowcase 字段
| 名称 | 说明 |
|---|---|
| Whether or not the owner has pinned any repositories or gists. |
| The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned. |
PublicKey
A user's public key.
PublicKey 实现
PublicKey 字段
| 名称 | 说明 |
|---|---|
| The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. |
| Identifies the date and time when the key was created. Keys created before March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. |
| The fingerprint for this PublicKey. |
| The Node ID of the PublicKey object. |
| Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. |
| The public key string. |
| Identifies the date and time when the key was updated. Keys created before March 5th, 2014 may have inaccurate values. Values will be null for keys not owned by the user. |
PublicKeyConnection
The connection type for PublicKey.
PublicKeyConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
PublicKeyEdge
An edge in a connection.
PublicKeyEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
ReactingUserConnection
The connection type for User.
ReactingUserConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
ReactingUserEdge
Represents a user that's made a reaction.
ReactingUserEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| N/A |
| The moment when the user made the reaction. |
RepositoryCollaboratorConnection
The connection type for User.
RepositoryCollaboratorConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryCollaboratorEdge
Represents a user who is a collaborator of a repository.
RepositoryCollaboratorEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| N/A |
| The permission the user has on the repository. |
| A list of sources for the user's access to the repository. |
RestrictedContribution
Represents a private contribution a user made on GitHub.
RestrictedContribution 实现
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. |
SavedReply
A Saved Reply is text a user can use to reply quickly.
SavedReply 实现
SavedReply 字段
| 名称 | 说明 |
|---|---|
| The body of the saved reply. |
| The saved reply body rendered to HTML. |
| Identifies the primary key from the database. |
| The Node ID of the SavedReply object. |
| The title of the saved reply. |
| The user that saved this reply. |
SavedReplyConnection
The connection type for SavedReply.
SavedReplyConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SavedReplyEdge
An edge in a connection.
SavedReplyEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SocialAccount
Social media profile associated with a user.
SocialAccount 字段
| 名称 | 说明 |
|---|---|
| Name of the social media account as it appears on the profile. |
| Software or company that hosts the social media account. |
| URL of the social media account. |
SocialAccountConnection
The connection type for SocialAccount.
SocialAccountConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SocialAccountEdge
An edge in a connection.
SocialAccountEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
StargazerConnection
The connection type for User.
StargazerConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
StargazerEdge
Represents a user that's starred a repository.
StargazerEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| N/A |
| Identifies when the item was starred. |
TeamMemberConnection
The connection type for User.
TeamMemberConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
TeamMemberEdge
Represents a user who is a member of a team.
TeamMemberEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The HTTP path to the organization's member access page. |
| The HTTP URL to the organization's member access page. |
| N/A |
| The role the member has on the team. |
User
A user is an individual's account on GitHub that owns repositories and can make new content.
User 实现
ActorAgenticNodePackageOwnerProfileOwnerProjectOwnerProjectV2OwnerProjectV2RecentRepositoryDiscussionAuthorRepositoryDiscussionCommentAuthorRepositoryOwnerUniformResourceLocatable
User 字段
| 名称 | 说明 |
|---|---|
| Determine if this repository owner has any items that can be pinned to their profile.
|
| A URL pointing to the user's public avatar.
|
| The user's public profile bio. |
| The user's public profile bio as HTML. |
| Could this user receive email notifications, if the organization had notification restrictions enabled?.
|
| A list of commit comments made by this user. |
| The user's public profile company. |
| The user's public profile company as HTML. |
| The collection of contributions this user has made to different repositories.
|
| The user's Copilot endpoint information. |
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The user's publicly visible profile email. |
| A list of enterprises that the user belongs to.
|
| A list of users the given user is followed by. |
| A list of users the given user is following. |
| Find gist by repo name.
|
| A list of gist comments made by this user. |
| A list of the Gists the user has created.
|
| The hovercard information for this user in a given context.
|
| The Node ID of the User object. |
| Whether or not this user is a participant in the GitHub Security Bug Bounty. |
| Whether or not this user is a participant in the GitHub Campus Experts Program. |
| Whether or not this user is a GitHub Developer Program member. |
| Whether or not this user is a GitHub employee. |
| Whether or not this user is following the viewer. Inverse of viewerIsFollowing. |
| Whether or not this user is a member of the GitHub Stars Program. |
| Whether or not the user has marked themselves as for hire. |
| Whether or not this user is a site administrator. |
| Whether or not this user is the viewing user. |
| A list of issue comments made by this user.
|
| A list of issues associated with this user.
|
| Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. |
| A user-curated list of repositories. |
| The user's public profile location. |
| The username used to login. |
| The user's public profile name. |
| Find an organization by its login that the user belongs to.
|
| Verified email addresses that match verified domains for a specified organization the user is a member of.
|
| A list of organizations the user belongs to.
|
| A list of packages under the owner.
|
| 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. |
| 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.
|
| Find a project by number.
|
| 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 user's projects. |
| The HTTP URL listing user's projects. |
| A list of projects under the owner.
|
| The user's profile pronouns. |
| A list of public keys associated with this user. |
| A list of pull requests associated with this user.
|
| Recent projects that this user has modified in the context of the owner. |
| A list of repositories that the user owns.
|
| A list of repositories that the user recently contributed to.
|
| Find Repository. |
| Discussion comments this user has authored.
|
| Discussions this user has started.
|
| The HTTP path for this user. |
| Replies this user has saved.
|
| The user's social media accounts, ordered as they appear on the user's profile. |
| Repositories the user has starred.
|
| The user's description of what they're currently doing. |
| Suggested names for user lists. |
| Identifies the date and time when the user was suspended. |
| Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created.
|
| The user's Twitter username. |
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this user. |
| Whether the request returns publicly visible information or privately visible information about the user. |
| Can the viewer pin repositories and gists to the profile?. |
| 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. |
| Whether or not the viewer is able to follow the user. |
| Channel value for subscribing to live updates for session creations. |
| Channel value for subscribing to live updates for session log updates. |
| Channel value for subscribing to live updates for session updates. |
| Whether or not this user is followed by the viewer. Inverse of isFollowingViewer. |
| A list of repositories the given user is watching.
|
| A URL pointing to the user's public website/blog. |
UserBlockedEvent
Represents auser_blockedevent on a given user.
UserBlockedEvent 实现
UserBlockedEvent 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| Number of days that the user was blocked for. |
| Identifies the date and time when the object was created. |
| The Node ID of the UserBlockedEvent object. |
| The user who was blocked. |
UserConnection
A list of users.
UserConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
UserContentEdit
An edit on user content.
UserContentEdit 实现
UserContentEdit 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the object was created. |
| Identifies the date and time when the object was deleted. |
| The actor who deleted this content. |
| A summary of the changes for this edit. |
| When this content was edited. |
| The actor who edited this content. |
| The Node ID of the UserContentEdit object. |
| Identifies the date and time when the object was last updated. |
UserContentEditConnection
A list of edits to content.
UserContentEditConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
UserContentEditEdge
An edge in a connection.
UserContentEditEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
UserEdge
Represents a user.
UserEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
UserEmailMetadata
Email attributes from External Identity.
UserEmailMetadata 字段
| 名称 | 说明 |
|---|---|
| Boolean to identify primary emails. |
| Type of email. |
| Email id. |
UserList
A user-curated list of repositories.
UserList 实现
UserList 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the object was created. |
| The description of this list. |
| The Node ID of the UserList object. |
| Whether or not this list is private. |
| The items associated with this list. |
| The date and time at which this list was created or last had items added to it. |
| The name of this list. |
| The slug of this list. |
| Identifies the date and time when the object was last updated. |
| The user to which this list belongs. |
UserListConnection
The connection type for UserList.
UserListConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
UserListEdge
An edge in a connection.
UserListEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
UserListItemsConnection
The connection type for UserListItems.
UserListItemsConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
UserListItemsEdge
An edge in a connection.
UserListItemsEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
UserListSuggestion
Represents a suggested user list.
UserListSuggestion 字段
| 名称 | 说明 |
|---|---|
| The ID of the suggested user list. |
| The name of the suggested user list. |
UserStatus
The user's description of what they're currently doing.
UserStatus 实现
UserStatus 字段
| 名称 | 说明 |
|---|---|
| Identifies the date and time when the object was created. |
| An emoji summarizing the user's status. |
| The status emoji as HTML. |
| If set, the status will not be shown after this date. |
| The Node ID of the UserStatus object. |
| Whether this status indicates the user is not fully available on GitHub. |
| A brief message describing what the user is doing. |
| The organization whose members can see this status. If null, this status is publicly visible. |
| Identifies the date and time when the object was last updated. |
| The user who has this status. |
UserStatusConnection
The connection type for UserStatus.
UserStatusConnection 字段
| 名称 | 说明 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
UserStatusEdge
An edge in a connection.
UserStatusEdge 字段
| 名称 | 说明 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
ViewerHovercardContext
A hovercard context with a message describing how the viewer is related.
ViewerHovercardContext 实现
ViewerHovercardContext 字段
| 名称 | 说明 |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
| Identifies the user who is related to this context. |
Interfaces
Actor
Represents an object which can take actions on GitHub. Typically a User or Bot.
Actor 的实现方式
Actor 字段
| 名称 | 说明 |
|---|---|
| A URL pointing to the actor's public avatar.
|
| The username of the actor. |
| The HTTP path for this actor. |
| The HTTP URL for this actor. |
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. |
HovercardContext
An individual line of a hovercard.
HovercardContext 的实现方式
OrganizationsHovercardContextReviewStatusHovercardContextOrganizationTeamsHovercardContextGenericHovercardContextViewerHovercardContext
HovercardContext 字段
| 名称 | 说明 |
|---|---|
| A string describing this context. |
| An octicon to accompany this context. |
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.
|
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. |
Enums
ActorType
The actor's type.
ActorType 的值
| 名称 | 说明 |
|---|---|
TEAM | Indicates a team actor. |
USER | Indicates a user actor. |
ContributionLevel
Varying levels of contributions from none to many.
ContributionLevel 的值
| 名称 | 说明 |
|---|---|
FIRST_QUARTILE | Lowest 25% of days of contributions. |
FOURTH_QUARTILE | Highest 25% of days of contributions. More contributions than the third quartile. |
NONE | No contributions occurred. |
SECOND_QUARTILE | Second lowest 25% of days of contributions. More contributions than the first quartile. |
THIRD_QUARTILE | Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile. |
PinnableItemType
Represents items that can be pinned to a profile page or dashboard.
PinnableItemType 的值
| 名称 | 说明 |
|---|---|
GIST | A gist. |
ISSUE | An issue. |
ORGANIZATION | An organization. |
PROJECT | A project. |
PULL_REQUEST | A pull request. |
REPOSITORY | A repository. |
TEAM | A team. |
USER | A user. |
SavedReplyOrderField
Properties by which saved reply connections can be ordered.
SavedReplyOrderField 的值
| 名称 | 说明 |
|---|---|
UPDATED_AT | Order saved reply by when they were updated. |
SocialAccountProvider
Software or company that hosts social media accounts.
SocialAccountProvider 的值
| 名称 | 说明 |
|---|---|
BLUESKY | Decentralized microblogging social platform. |
FACEBOOK | Social media and networking website. |
GENERIC | Catch-all for social media providers that do not yet have specific handling. |
HOMETOWN | Fork of Mastodon with a greater focus on local posting. |
INSTAGRAM | Social media website with a focus on photo and video sharing. |
LINKEDIN | Professional networking website. |
MASTODON | Open-source federated microblogging service. |
NPM | JavaScript package registry. |
REDDIT | Social news aggregation and discussion website. |
TWITCH | Live-streaming service. |
TWITTER | Microblogging website. |
YOUTUBE | Online video platform. |
UserBlockDuration
The possible durations that a user can be blocked for.
UserBlockDuration 的值
| 名称 | 说明 |
|---|---|
ONE_DAY | The user was blocked for 1 day. |
ONE_MONTH | The user was blocked for 30 days. |
ONE_WEEK | The user was blocked for 7 days. |
PERMANENT | The user was blocked permanently. |
THREE_DAYS | The user was blocked for 3 days. |
UserStatusOrderField
Properties by which user status connections can be ordered.
UserStatusOrderField 的值
| 名称 | 说明 |
|---|---|
UPDATED_AT | Order user statuses by when they were updated. |
UserViewType
Whether a user being viewed contains public or private information.
UserViewType 的值
| 名称 | 说明 |
|---|---|
PRIVATE | A user containing information only visible to the authenticated user. |
PUBLIC | A user that is publicly visible. |
Unions
Claimable
An object which can have its data claimed or claim data from another.
Claimable 可能类型
CreatedIssueOrRestrictedContribution
Represents either a issue the viewer can access or a restricted contribution.
CreatedIssueOrRestrictedContribution 可能类型
CreatedPullRequestOrRestrictedContribution
Represents either a pull request the viewer can access or a restricted contribution.
CreatedPullRequestOrRestrictedContribution 可能类型
CreatedRepositoryOrRestrictedContribution
Represents either a repository the viewer can access or a restricted contribution.
CreatedRepositoryOrRestrictedContribution 可能类型
PinnableItem
Types that can be pinned to a profile page.
PinnableItem 可能类型
UserListItems
Types that can be added to a user list.
UserListItems 可能类型
Input objects
ChangeUserStatusInput
Autogenerated input type of ChangeUserStatus.
输入 ChangeUserStatusInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., 😀. |
| If set, the user status will not be shown after this date. |
| Whether this status should indicate you are not fully available on GitHub, e.g., you are away. |
| A short description of your current status. |
| The ID of the organization whose members will be allowed to see the status. If omitted, the status will be publicly visible. |
ContributionOrder
Ordering options for contribution connections.
输入 ContributionOrder 字段
| 名称 | 说明 |
|---|---|
| The ordering direction. |
CreateUserListInput
Autogenerated input type of CreateUserList.
输入 CreateUserListInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| A description of the list. |
| Whether or not the list is private. |
| The name of the new list. |
DeleteUserListInput
Autogenerated input type of DeleteUserList.
输入 DeleteUserListInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the list to delete. |
FollowUserInput
Autogenerated input type of FollowUser.
输入 FollowUserInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| ID of the user to follow. |
SavedReplyOrder
Ordering options for saved reply connections.
输入 SavedReplyOrder 字段
| 名称 | 说明 |
|---|---|
| The ordering direction. |
| The field to order saved replies by. |
UnfollowUserInput
Autogenerated input type of UnfollowUser.
输入 UnfollowUserInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| ID of the user to unfollow. |
UpdateUserListInput
Autogenerated input type of UpdateUserList.
输入 UpdateUserListInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| A description of the list. |
| Whether or not the list is private. |
| The ID of the list to update. |
| The name of the list. |
UpdateUserListsForItemInput
Autogenerated input type of UpdateUserListsForItem.
输入 UpdateUserListsForItemInput 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The item to add to the list. |
| The lists to which this item should belong. |
| The suggested lists to create and add this item to. |
UserStatusOrder
Ordering options for user status connections.
输入 UserStatusOrder 字段
| 名称 | 说明 |
|---|---|
| The ordering direction. |
| The field to order user statuses by. |