Queries
user
Lookup a user by login.
Type: User
Arguments for user
| Name | Description |
|---|---|
| The user's login. |
viewer
The currently authenticated user.
Type: User!
Mutations
changeUserStatus
Update your status on GitHub.
Input fields for changeUserStatus
input(ChangeUserStatusInput!)
Return fields for changeUserStatus
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| Your updated status. |
createUserList
Creates a new user list.
Input fields for createUserList
input(CreateUserListInput!)
Return fields for createUserList
| Name | Description |
|---|---|
| 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.
Input fields for deleteUserList
input(DeleteUserListInput!)
Return fields for deleteUserList
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The owner of the list that will be deleted. |
followUser
Follow a user.
Input fields for followUser
input(FollowUserInput!)
Return fields for followUser
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The user that was followed. |
setUserInteractionLimit
Set a user level interaction limit for an user's public repositories.
Input fields for setUserInteractionLimit
input(SetUserInteractionLimitInput!)
Return fields for setUserInteractionLimit
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The user that the interaction limit was set for. |
unfollowUser
Unfollow a user.
Input fields for unfollowUser
input(UnfollowUserInput!)
Return fields for unfollowUser
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The user that was unfollowed. |
updateUserList
Updates an existing user list.
Input fields for updateUserList
input(UpdateUserListInput!)
Return fields for updateUserList
| Name | Description |
|---|---|
| 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.
Input fields for updateUserListsForItem
input(UpdateUserListsForItemInput!)
Return fields for updateUserListsForItem
| Name | Description |
|---|---|
| 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.
Fields for ActorConnection
| Name | Description |
|---|---|
| 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.
Fields for ActorEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
ActorLocation
Location information for an actor.
Fields for ActorLocation
| Name | Description |
|---|---|
| City. |
| Country name. |
| Country code. |
| Region name. |
| Region or state code. |
ContributionCalendar
A calendar of contributions made on GitHub by a user.
Fields for ContributionCalendar
| Name | Description |
|---|---|
| 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.
Fields for ContributionCalendarDay
| Name | Description |
|---|---|
| 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.
Fields for ContributionCalendarMonth
| Name | Description |
|---|---|
| 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.
Fields for ContributionCalendarWeek
| Name | Description |
|---|---|
| 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.
Fields for ContributionsCollection
| Name | Description |
|---|---|
| Commit contributions made by the user, grouped by repository. Arguments for
|
| 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. Arguments for
|
| Issue contributions made by the user, grouped by repository. Arguments for
|
| 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. Arguments for
|
| Pull request contributions made by the user, grouped by repository. Arguments for
|
| Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user. Arguments for
|
| Pull request review contributions made by the user, grouped by repository. Arguments for
|
| A list of repositories owned by the user that the user created in this time range. Arguments for
|
| 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. Arguments for
|
| How many repositories the user created. Arguments for
|
| The user who made the contributions in this collection. |
CreatedCommitContribution
Represents the contribution a user made by committing to a repository.
CreatedCommitContribution Implements
Fields for CreatedCommitContribution
| Name | Description |
|---|---|
| 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.
Fields for CreatedCommitContributionConnection
| Name | Description |
|---|---|
| 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.
Fields for CreatedCommitContributionEdge
| Name | Description |
|---|---|
| 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 Implements
Fields for CreatedIssueContribution
| 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. |
| 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.
Fields for CreatedIssueContributionConnection
| Name | Description |
|---|---|
| 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.
Fields for CreatedIssueContributionEdge
| Name | Description |
|---|---|