User

A user is an individual's account on GitHub that owns repositories and can make new content.

Implements

Connections

commitComments (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

contributedRepositories (RepositoryConnection!)

A list of repositories that the user recently contributed to.

Argument Type Description
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

followers (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

following (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

gistComments (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

gists (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

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.

issueComments (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

issues (IssueConnection!)

A list of issues assocated with this user.

Argument Type Description
after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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.

organizations (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

pinnedRepositories (RepositoryConnection!)

A list of repositories this user has pinned to their profile

Argument Type Description
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

publicKeys (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

pullRequests (PullRequestConnection!)

A list of pull requests assocated with this user.

Argument Type Description
after String

Returns the elements in the list that come after the specified global ID.

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 global ID.

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.

repositories (RepositoryConnection!)

A list of repositories that the user owns.

Argument Type Description
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

repositoriesContributedTo (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 global ID.

before String

Returns the elements in the list that come before the specified global ID.

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

starredRepositories (StarredRepositoryConnection!)

Repositories the user has starred.

Argument Type Description
after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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.

watching (RepositoryConnection!)

A list of repositories the given user is watching.

Argument Type Description
affiliations [RepositoryAffiliation]

Affiliation options for repositories returned from the connection

after String

Returns the elements in the list that come after the specified global ID.

before String

Returns the elements in the list that come before the specified global ID.

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

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

Fields

avatarUrl (URI!)

A URL pointing to the user's public avatar.

Argument Type Description
size Int

The size of the resulting square image.

bio (String)

The user's public profile bio.

bioHTML (HTML!)

The user's public profile bio as HTML.

company (String)

The user's public profile company.

companyHTML (HTML!)

The user's public profile company as HTML.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)
Deprecation notice

Exposed database IDs will eventually be removed in favor of global Relay IDs.

Identifies the primary key from the database.

email (String!)

The user's publicly visible profile email.

gist (Gist)

Find gist by repo name.

Argument Type Description
name String!

The gist name to find.

id (ID!)
isBountyHunter (Boolean!)

Whether or not this user is a participant in the GitHub Security Bug Bounty.

isCampusExpert (Boolean!)

Whether or not this user is a participant in the GitHub Campus Experts Program.

isDeveloperProgramMember (Boolean!)

Whether or not this user is a GitHub Developer Program member.

isEmployee (Boolean!)

Whether or not this user is a GitHub employee.

isHireable (Boolean!)

Whether or not the user has marked themselves as for hire.

isSiteAdmin (Boolean!)

Whether or not this user is a site administrator.

isViewer (Boolean!)

Whether or not this user is the viewing user.

location (String)

The user's public profile location.

login (String!)

The username used to login.

name (String)

The user's public profile name.

organization (Organization)

Find an organization by its login that the user belongs to.

Argument Type Description
login String!

The login of the organization to find.

repository (Repository)

Find Repository.

Argument Type Description
name String!

Name of Repository to find.

resourcePath (URI!)

The HTTP path for this user

updatedAt (DateTime!)
Deprecation notice

General type updated timestamps will eventually be replaced by other field specific timestamps.

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this user

viewerCanFollow (Boolean!)

Whether or not the viewer is able to follow the user.

viewerIsFollowing (Boolean!)

Whether or not this user is followed by the viewer.

websiteUrl (URI)

A URL pointing to the user's public website/blog.