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.
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.
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.
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.
following(after: String, before: String, first: Int, last: Int): FollowingConnection!
A list of users the given user is following.
gist(name: String!): Gist
Find gist by repo name.
gistComments(after: String, before: String, first: Int, last: Int): GistCommentConnection!
A list of gist comments made by this user.
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.
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.
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.
states: [IssueState!]
A list of states to filter the issues by.
filterBy: IssueFilters
Filtering options for issues returned from the connection.
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.
organizationVerifiedDomainEmails(login: String!): [String!]!
Verified email addresses that match verified domains for a specified organization the user is a member of.
organizations(after: String, before: String, first: Int, last: Int): OrganizationConnection!
A list of organizations the user belongs to.
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
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.
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.
pinnedItemsRemaining: Int!
Returns how many more items this profile owner can pin to their profile.
project(number: Int!): Project
Find project by number.
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
states: [ProjectState!]
A list of states to filter the projects by.
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.
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.
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.
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.
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
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]
repository(name: String!): Repository
Find Repository.
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
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
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
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
ownedByViewer: Boolean
Filters starred repositories to only return repositories owned by the viewer.
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
orderBy: RepositoryOrder!
Ordering options for repositories returned from the connection
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.
websiteUrl: URI
A URL pointing to the user's public website/blog.