Object GitHub::User

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

Fields

anyPinnableItems(type: PinnableItemType): Boolean!

Determine if this repository owner has any items that can be pinned to their profile.

Args

type: PinnableItemType

Filter to only a particular kind of pinnable item.

avatarUrl(size: Int): URI!

A URL pointing to the user's public avatar.

Args

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.

commitComments(after: String, before: String, first: Int, last: Int): CommitCommentConnection!

A list of commit comments made by this user.

Args

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.

company: String

The user's public profile company.

companyHTML: HTML!

The user's public profile company as HTML.

contributionsCollection(organizationID: ID, from: DateTime, to: DateTime): ContributionsCollection!

The collection of contributions this user has made to different repositories.

Args

organizationID: ID

The ID of the organization used to filter contributions.

from: DateTime

Only contributions made at this time or later will be counted. If omitted, defaults to a year ago.

to: DateTime

Only contributions made before and up to and including this time will be counted. If omitted, defaults to the current time.

createdAt: DateTime!

Identifies the date and time when the object was created.

databaseId: Int

Identifies the primary key from the database.

email: String!

The user's publicly visible profile email.

followers(after: String, before: String, first: Int, last: Int): FollowerConnection!

A list of users the given user is followed by.

Args

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.

following(after: String, before: String, first: Int, last: Int): FollowingConnection!

A list of users the given user is following.

Args

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.

gist(name: String!): Gist

Find gist by repo name.

Args

name: String!

The gist name to find.

gistComments(after: String, before: String, first: Int, last: Int): GistCommentConnection!

A list of gist comments made by this user.

Args

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.

gists(privacy: GistPrivacy, orderBy: GistOrder, after: String, before: String, first: Int, last: Int): GistConnection!

A list of the Gists the user has created.

Args

privacy: GistPrivacy

Filters Gists according to privacy.

orderBy: GistOrder

Ordering options for gists returned from the connection

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.

hovercard(primarySubjectId: ID): Hovercard!

The hovercard information for this user in a given context

Args

primarySubjectId: ID

The ID of the subject to get the hovercard in the context of

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.

issueComments(after: String, before: String, first: Int, last: Int): IssueCommentConnection!

A list of issue comments made by this user.

Args

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.

issues(orderBy: IssueOrder, labels: [String!], states: [IssueState!], filterBy: IssueFilters, after: String, before: String, first: Int, last: Int): IssueConnection!

A list of issues associated with this user.

Args

orderBy: IssueOrder

Ordering options for issues returned from the connection.

labels: [String!]

A list of label names to filter the pull requests by.

states: [IssueState!]

A list of states to filter the issues by.

filterBy: IssueFilters

Filtering options for issues returned from the connection.

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.

itemShowcase: ProfileItemShowcase!

Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity.

location: String

The user's public profile location.

login: String!

The username used to login.

name: String

The user's public profile name.

organization(login: String!): Organization

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

Args

login: String!

The login of the organization to find.

organizationVerifiedDomainEmails(login: String!): [String!]!

Verified email addresses that match verified domains for a specified organization the user is a member of.

Args

login: String!

The login of the organization to match verified domains from.

organizations(after: String, before: String, first: Int, last: Int): OrganizationConnection!

A list of organizations the user belongs to.

Args

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.

packages(after: String, before: String, first: Int, last: Int, names: [String], repositoryId: ID, packageType: PackageType, orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}): PackageConnection!

A list of packages under the owner.

Args

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.

repositoryId: ID

Find packages in a repository by ID.

packageType: PackageType

Filter registry package by type.

orderBy: PackageOrder = {field: CREATED_AT, direction: DESC}

Ordering of the returned packages.

pinnableItems(types: [PinnableItemType!], after: String, before: String, first: Int, last: Int): PinnableItemConnection!

A list of repositories and gists this profile owner can pin to their profile.

Args

types: [PinnableItemType!]

Filter the types of pinnable items that are returned.

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.

pinnedItems(types: [PinnableItemType!], after: String, before: String, first: Int, last: Int): PinnableItemConnection!

A list of repositories and gists this profile owner has pinned to their profile

Args

types: [PinnableItemType!]

Filter the types of pinned items that are returned.

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.

pinnedItemsRemaining: Int!

Returns how many more items this profile owner can pin to their profile.

project(number: Int!): Project

Find project by number.

Args

number: Int!

The project number to find.

projects(orderBy: ProjectOrder, search: String, states: [ProjectState!], after: String, before: String, first: Int, last: Int): ProjectConnection!

A list of projects under the owner.

Args

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.

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.

projectsResourcePath: URI!

The HTTP path listing user's projects

projectsUrl: URI!

The HTTP URL listing user's projects

publicKeys(after: String, before: String, first: Int, last: Int): PublicKeyConnection!

A list of public keys associated with this user.

Args

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.

pullRequests(states: [PullRequestState!], labels: [String!], headRefName: String, baseRefName: String, orderBy: IssueOrder, after: String, before: String, first: Int, last: Int): PullRequestConnection!

A list of pull requests associated with this user.

Args

states: [PullRequestState!]

A list of states to filter the pull requests by.

labels: [String!]

A list of label names to filter the pull requests by.

headRefName: String

The head ref name to filter the pull requests by.

baseRefName: String

The base ref name to filter the pull requests by.

orderBy: IssueOrder

Ordering options for pull requests returned from the connection.

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.

repositories(privacy: RepositoryPrivacy, orderBy: RepositoryOrder, affiliations: [RepositoryAffiliation], ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], isLocked: Boolean, after: String, before: String, first: Int, last: Int, isFork: Boolean): RepositoryConnection!

A list of repositories that the user owns.

Args

privacy: RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy: RepositoryOrder

Ordering options for repositories returned from the connection

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.

ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]

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.

isLocked: Boolean

If non-null, filters repositories according to whether they have been locked

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.

isFork: Boolean

If non-null, filters repositories according to whether they are forks of another repository

repositoriesContributedTo(privacy: RepositoryPrivacy, orderBy: RepositoryOrder, isLocked: Boolean, includeUserRepositories: Boolean, contributionTypes: [RepositoryContributionType], after: String, before: String, first: Int, last: Int): RepositoryConnection!

A list of repositories that the user recently contributed to.

Args

privacy: RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy: RepositoryOrder

Ordering options for repositories returned from the connection

isLocked: Boolean

If non-null, filters repositories according to whether they have been locked

includeUserRepositories: Boolean

If true, include user repositories

contributionTypes: [RepositoryContributionType]

If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]

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.

repository(name: String!): Repository

Find Repository.

Args

name: String!

Name of Repository to find.

resourcePath: URI!

The HTTP path for this user

savedReplies(after: String, before: String, first: Int, last: Int, orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC}): SavedReplyConnection

Replies this user has saved

Args

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 = {field: UPDATED_AT, direction: DESC}

The field to order saved replies by.

sponsorsListing: SponsorsListing

The GitHub Sponsors listing for this user.

sponsorshipsAsMaintainer(after: String, before: String, first: Int, last: Int, includePrivate: Boolean = false, orderBy: SponsorshipOrder): SponsorshipConnection!

This object's sponsorships as the maintainer.

Args

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.

includePrivate: Boolean = false

Whether or not to include private sponsorships in the result set

orderBy: SponsorshipOrder

Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer.

sponsorshipsAsSponsor(after: String, before: String, first: Int, last: Int, orderBy: SponsorshipOrder): SponsorshipConnection!

This object's sponsorships as the sponsor.

Args

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.

starredRepositories(after: String, before: String, first: Int, last: Int, ownedByViewer: Boolean, orderBy: StarOrder): StarredRepositoryConnection!

Repositories the user has starred.

Args

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.

ownedByViewer: Boolean

Filters starred repositories to only return repositories owned by the viewer.

orderBy: StarOrder

Order for connection

status: UserStatus

The user's description of what they're currently doing.

topRepositories(after: String, before: String, first: Int, last: Int, orderBy: RepositoryOrder!, since: DateTime): RepositoryConnection!

Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created

Args

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

twitterUsername: String

The user's Twitter username.

updatedAt: DateTime!

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

url: URI!

The HTTP URL for this user

viewerCanChangePinnedItems: Boolean!

Can the viewer pin repositories and gists to the profile?

viewerCanCreateProjects: Boolean!

Can the current viewer create new projects on this owner.

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.

watching(privacy: RepositoryPrivacy, orderBy: RepositoryOrder, affiliations: [RepositoryAffiliation], ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR], isLocked: Boolean, after: String, before: String, first: Int, last: Int): RepositoryConnection!

A list of repositories the given user is watching.

Args

privacy: RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy: RepositoryOrder

Ordering options for repositories returned from the connection

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.

ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]

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.

isLocked: Boolean

If non-null, filters repositories according to whether they have been locked

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.

websiteUrl: URI

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

Uses

AssignedEvent.user

ContributionsCollection.user

CreatedCommitContribution.user

CreatedIssueContribution.user

CreatedPullRequestContribution.user

CreatedPullRequestReviewContribution.user

CreatedRepositoryContribution.user

EnterpriseAdministratorConnection.nodes

EnterpriseAdministratorEdge.node

EnterpriseAdministratorInvitation.invitee

EnterpriseAdministratorInvitation.inviter

EnterpriseOutsideCollaboratorConnection.nodes

EnterpriseOutsideCollaboratorEdge.node

EnterprisePendingCollaboratorConnection.nodes

EnterprisePendingCollaboratorEdge.node

EnterpriseUserAccount.user

ExternalIdentity.user

FollowUserPayload.user

FollowerConnection.nodes

FollowingConnection.nodes

GitActor.user

GpgSignature.signer

JoinedGitHubContribution.user

MembersCanDeleteReposClearAuditEntry.user

MembersCanDeleteReposDisableAuditEntry.user

MembersCanDeleteReposEnableAuditEntry.user

OauthApplicationCreateAuditEntry.user

OrgAddBillingManagerAuditEntry.user

OrgAddMemberAuditEntry.user

OrgBlockUserAuditEntry.blockedUser

OrgBlockUserAuditEntry.user

OrgConfigDisableCollaboratorsOnlyAuditEntry.user

OrgConfigEnableCollaboratorsOnlyAuditEntry.user

OrgCreateAuditEntry.user

OrgDisableOauthAppRestrictionsAuditEntry.user

OrgDisableSamlAuditEntry.user

OrgDisableTwoFactorRequirementAuditEntry.user

OrgEnableOauthAppRestrictionsAuditEntry.user

OrgEnableSamlAuditEntry.user

OrgEnableTwoFactorRequirementAuditEntry.user

OrgInviteMemberAuditEntry.user

OrgInviteToBusinessAuditEntry.user

OrgOauthAppAccessApprovedAuditEntry.user

OrgOauthAppAccessDeniedAuditEntry.user

OrgOauthAppAccessRequestedAuditEntry.user

OrgRemoveBillingManagerAuditEntry.user

OrgRemoveMemberAuditEntry.user

OrgRemoveOutsideCollaboratorAuditEntry.user

OrgRestoreMemberAuditEntry.user

OrgUnblockUserAuditEntry.blockedUser

OrgUnblockUserAuditEntry.user

OrgUpdateDefaultRepositoryPermissionAuditEntry.user

OrgUpdateMemberAuditEntry.user

OrgUpdateMemberRepositoryCreationPermissionAuditEntry.user

OrgUpdateMemberRepositoryInvitationPermissionAuditEntry.user

OrganizationInvitation.invitee

OrganizationInvitation.inviter

OrganizationMemberConnection.nodes

OrganizationMemberEdge.node

PrivateRepositoryForkingDisableAuditEntry.user

PrivateRepositoryForkingEnableAuditEntry.user

PullRequestReviewThread.resolvedBy

Query.user

Query.viewer

ReactingUserConnection.nodes

ReactingUserEdge.node

Reaction.user

Release.author

ReleaseAsset.uploadedBy

RemoveEnterpriseAdminPayload.admin

RemoveEnterpriseAdminPayload.viewer

RemoveEnterpriseOrganizationPayload.viewer

RemoveOutsideCollaboratorPayload.removedUser

RepoAccessAuditEntry.user

RepoAddMemberAuditEntry.user

RepoAddTopicAuditEntry.user

RepoArchivedAuditEntry.user

RepoChangeMergeSettingAuditEntry.user

RepoConfigDisableAnonymousGitAccessAuditEntry.user

RepoConfigDisableCollaboratorsOnlyAuditEntry.user

RepoConfigDisableContributorsOnlyAuditEntry.user

RepoConfigDisableSockpuppetDisallowedAuditEntry.user

RepoConfigEnableAnonymousGitAccessAuditEntry.user

RepoConfigEnableCollaboratorsOnlyAuditEntry.user

RepoConfigEnableContributorsOnlyAuditEntry.user

RepoConfigEnableSockpuppetDisallowedAuditEntry.user

RepoConfigLockAnonymousGitAccessAuditEntry.user

RepoConfigUnlockAnonymousGitAccessAuditEntry.user

RepoCreateAuditEntry.user

RepoDestroyAuditEntry.user

RepoRemoveMemberAuditEntry.user

RepoRemoveTopicAuditEntry.user

RepositoryCollaboratorConnection.nodes

RepositoryCollaboratorEdge.node

RepositoryInvitation.invitee

RepositoryInvitation.inviter

RepositoryVisibilityChangeDisableAuditEntry.user

RepositoryVisibilityChangeEnableAuditEntry.user

RepositoryVulnerabilityAlert.dismisser

RestrictedContribution.user

SmimeSignature.signer

Sponsorship.maintainer

Sponsorship.sponsor

StargazerConnection.nodes

StargazerEdge.node

SuggestedReviewer.reviewer

TeamAddMemberAuditEntry.user

TeamAddRepositoryAuditEntry.user

TeamChangeParentTeamAuditEntry.user

TeamMemberConnection.nodes

TeamMemberEdge.node

TeamRemoveMemberAuditEntry.user

TeamRemoveRepositoryAuditEntry.user

UnassignedEvent.user

UnfollowUserPayload.user

UnknownSignature.signer

UserBlockedEvent.subject

UserConnection.nodes

UserEdge.node

UserStatus.user

ViewerHovercardContext.viewer

AuditEntry.user

Contribution.user

GitSignature.signer

Assignee

AuditEntryActor

EnterpriseMember

PushAllowanceActor

RequestedReviewer

ReviewDismissalAllowanceActor

SearchResultItem

Sponsor

Actor

Node

PackageOwner

ProfileOwner

ProjectOwner

RepositoryOwner

Sponsorable

UniformResourceLocatable