User
A user is an individual's account on GitHub that owns repositories and can make new content.
Implements
ActorNodePackageOwnerProfileOwnerProjectOwnerRepositoryOwnerSponsorableUniformResourceLocatable
Connections
CommitCommentConnection!)
A list of commit comments made by this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
FollowerConnection!)
A list of users the given user is followed by.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
FollowingConnection!)
A list of users the given user is following.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
GistCommentConnection!)
A list of gist comments made by this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
GistConnection!)
A list of the Gists the user has created.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
GistOrder
|
Ordering options for gists returned from the connection |
privacy |
GistPrivacy
|
Filters Gists according to privacy. |
IssueCommentConnection!)
A list of issue comments made by this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
IssueConnection!)
A list of issues associated with this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
filterBy |
IssueFilters
|
Filtering options for issues returned from the connection. |
first |
Int
|
Returns the first n elements from the list. |
labels |
[String!]
|
A list of label names to filter the pull requests by. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
IssueOrder
|
Ordering options for issues returned from the connection. |
states |
[IssueState!]
|
A list of states to filter the issues by. |
OrganizationConnection!)
A list of organizations the user belongs to.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
PackageConnection!)
A list of packages under the owner.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
names |
[String]
|
Find packages by their names. |
orderBy |
PackageOrder
|
Ordering of the returned packages. The default value is |
packageType |
PackageType
|
Filter registry package by type. |
repositoryId |
ID
|
Find packages in a repository by ID. |
PinnableItemConnection!)
A list of repositories and gists this profile owner can pin to their profile.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
types |
[PinnableItemType!]
|
Filter the types of pinnable items that are returned. |
PinnableItemConnection!)
A list of repositories and gists this profile owner has pinned to their profile
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
types |
[PinnableItemType!]
|
Filter the types of pinned items that are returned. |
ProjectConnection!)
A list of projects under the owner.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
ProjectOrder
|
Ordering options for projects returned from the connection |
search |
String
|
Query to search projects by, currently only searching by name. |
states |
[ProjectState!]
|
A list of states to filter the projects by. |
PublicKeyConnection!)
A list of public keys associated with this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
PullRequestConnection!)
A list of pull requests associated with this user.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
baseRefName |
String
|
The base ref name to filter the pull requests by. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
headRefName |
String
|
The head ref name to filter the pull requests by. |
labels |
[String!]
|
A list of label names to filter the pull requests by. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
IssueOrder
|
Ordering options for pull requests returned from the connection. |
states |
[PullRequestState!]
|
A list of states to filter the pull requests by. |
RepositoryConnection!)
A list of repositories that the user owns.
| Argument | Type | Description |
|---|---|---|
affiliations |
[RepositoryAffiliation]
|
Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. |
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
isFork |
Boolean
|
If non-null, filters repositories according to whether they are forks of another repository |
isLocked |
Boolean
|
If non-null, filters repositories according to whether they have been locked |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
RepositoryOrder
|
Ordering options for repositories returned from the connection |
ownerAffiliations |
[RepositoryAffiliation]
|
Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. The default value is |
privacy |
RepositoryPrivacy
|
If non-null, filters repositories according to privacy |
RepositoryConnection!)
A list of repositories that the user recently contributed to.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
contributionTypes |
[RepositoryContributionType]
|
If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY] |
first |
Int
|
Returns the first n elements from the list. |
includeUserRepositories |
Boolean
|
If true, include user repositories |
isLocked |
Boolean
|
If non-null, filters repositories according to whether they have been locked |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
RepositoryOrder
|
Ordering options for repositories returned from the connection |
privacy |
RepositoryPrivacy
|
If non-null, filters repositories according to privacy |
SavedReplyConnection)
Replies this user has saved
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
SavedReplyOrder
|
The field to order saved replies by. The default value is |
SponsorshipConnection!)
This object's sponsorships as the maintainer.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
includePrivate |
Boolean
|
Whether or not to include private sponsorships in the result set The default value is |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
SponsorshipOrder
|
Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. |
SponsorshipConnection!)
This object's sponsorships as the sponsor.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
SponsorshipOrder
|
Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. |
StarredRepositoryConnection!)
Repositories the user has starred.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
StarOrder
|
Order for connection |
ownedByViewer |
Boolean
|
Filters starred repositories to only return repositories owned by the viewer. |
RepositoryConnection!)
Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
RepositoryOrder!
|
Ordering options for repositories returned from the connection |
since |
DateTime
|
How far back in time to fetch contributed repositories |
RepositoryConnection!)
A list of repositories the given user is watching.
| Argument | Type | Description |
|---|---|---|
affiliations |
[RepositoryAffiliation]
|
Affiliation options for repositories returned from the connection. If none specified, the results will include repositories for which the current viewer is an owner or collaborator, or member. |
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
isLocked |
Boolean
|
If non-null, filters repositories according to whether they have been locked |
last |
Int
|
Returns the last n elements from the list. |
orderBy |
RepositoryOrder
|
Ordering options for repositories returned from the connection |
ownerAffiliations |
[RepositoryAffiliation]
|
Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. The default value is |
privacy |
RepositoryPrivacy
|
If non-null, filters repositories according to privacy |
Fields
Boolean!)
Determine if this repository owner has any items that can be pinned to their profile.
| Argument | Type | Description |
|---|---|---|
type |
PinnableItemType
|
Filter to only a particular kind of pinnable item. |
URI!)
A URL pointing to the user's public avatar.
| Argument | Type | Description |
|---|---|---|
size |
Int
|
The size of the resulting square image. |
String)
The user's public profile bio.
HTML!)
The user's public profile bio as HTML.
String)
The user's public profile company.
HTML!)
The user's public profile company as HTML.
ContributionsCollection!)
The collection of contributions this user has made to different repositories.
| Argument | Type | Description |
|---|---|---|
from |
DateTime
|
Only contributions made at this time or later will be counted. If omitted, defaults to a year ago. |
organizationID |
ID
|
The ID of the organization used to filter contributions. |
to |
DateTime
|
Only contributions made before and up to and including this time will be counted. If omitted, defaults to the current time. |
DateTime!)
Identifies the date and time when the object was created.
Int)
Identifies the primary key from the database.
String!)
The user's publicly visible profile email.
Hovercard!)
The hovercard information for this user in a given context
| Argument | Type | Description |
|---|---|---|
primarySubjectId |
ID
|
The ID of the subject to get the hovercard in the context of |
ID!)
Boolean!)
Whether or not this user is a participant in the GitHub Security Bug Bounty.
Boolean!)
Whether or not this user is a participant in the GitHub Campus Experts Program.
Boolean!)
Whether or not this user is a GitHub Developer Program member.
Boolean!)
Whether or not this user is a GitHub employee.
Boolean!)
Whether or not the user has marked themselves as for hire.
Boolean!)
Whether or not this user is a site administrator.
Boolean!)
Whether or not this user is the viewing user.
ProfileItemShowcase!)
Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity.
String)
The user's public profile location.
String!)
The username used to login.
String)
The user's public profile name.
Organization)
Find an organization by its login that the user belongs to.
| Argument | Type | Description |
|---|---|---|
login |
String!
|
The login of the organization to find. |
[String!]!)
Verified email addresses that match verified domains for a specified organization the user is a member of.
| Argument | Type | Description |
|---|---|---|
login |
String!
|
The login of the organization to match verified domains from. |
Int!)
Returns how many more items this profile owner can pin to their profile.
Project)
Find project by number.
| Argument | Type | Description |
|---|---|---|
number |
Int!
|
The project number to find. |
URI!)
The HTTP path listing user's projects
URI!)
The HTTP URL listing user's projects
Repository)
Find Repository.
| Argument | Type | Description |
|---|---|---|
name |
String!
|
Name of Repository to find. |
URI!)
The HTTP path for this user
SponsorsListing)
The GitHub Sponsors listing for this user.
UserStatus)
The user's description of what they're currently doing.
String)
The user's Twitter username.
DateTime!)
Identifies the date and time when the object was last updated.
URI!)
The HTTP URL for this user
Boolean!)
Can the viewer pin repositories and gists to the profile?
Boolean!)
Can the current viewer create new projects on this owner.
Boolean!)
Whether or not the viewer is able to follow the user.
Boolean!)
Whether or not this user is followed by the viewer.
URI)
A URL pointing to the user's public website/blog.