Github API - Test Config

query viewer

The currently authenticated user.

Returns
User

User [object]

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

Implements
ActorNodePackageOwnerProfileOwnerProjectOwnerProjectV2OwnerProjectV2RecentRepositoryDiscussionAuthorRepositoryDiscussionCommentAuthorRepositoryOwnerSponsorableUniformResourceLocatable
Attributes
anyPinnableItems Boolean

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

avatarUrl 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.

canReceiveOrganizationEmailsWhenNotificationsRestricted Boolean

Could this user receive email notifications, if the organization had notification restrictions enabled?

commitComments 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 ContributionsCollection

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

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.

enterprises EnterpriseConnection

A list of enterprises that the user belongs to.

estimatedNextSponsorsPayoutInCents Int

The estimated next GitHub Sponsors payout for this user/organization in cents (USD).

followers FollowerConnection

A list of users the given user is followed by.

A list of users the given user is following.

gist Gist

Find gist by repo name.

gistComments GistCommentConnection

A list of gist comments made by this user.

A list of the Gists the user has created.

hasSponsorsListing Boolean

True if this user/organization has a GitHub Sponsors listing.

hovercard Hovercard

The hovercard information for this user in a given context

id ID

The Node ID of the User object

interactionAbility RepositoryInteractionAbility

The interaction ability settings for this user.

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.

isFollowingViewer Boolean

Whether or not this user is following the viewer. Inverse of viewerIsFollowing

isGitHubStar Boolean

Whether or not this user is a member of the GitHub Stars Program.

isHireable Boolean

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

isSiteAdmin Boolean

Whether or not this user is a site administrator.

isSponsoredBy Boolean

Whether the given account is sponsoring this user/organization.

isSponsoringViewer Boolean

True if the viewer is sponsored by this user/organization.

isViewer Boolean

Whether or not this user is the viewing user.

issueComments IssueCommentConnection

A list of issue comments made by this user.

A list of issues associated with this user.

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.

lifetimeReceivedSponsorshipValues SponsorAndLifetimeValueConnection

Calculate how much each sponsor has ever paid total to this maintainer via
GitHub Sponsors. Does not include sponsorships paid via Patreon.

A user-curated list of repositories

location String

The user's public profile location.

login String

The username used to login.

monthlyEstimatedSponsorsIncomeInCents Int

The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).

name String

The user's public profile name.

organization Organization

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

organizationVerifiedDomainEmails String []

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

organizations OrganizationConnection

A list of organizations the user belongs to.

A list of packages under the owner.

pinnableItems PinnableItemConnection

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

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

pinnedItemsRemaining Int

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

project Project

Find project by number.

projectV2 ProjectV2

Find a project by number.

A list of projects under the owner.

projectsResourcePath URI

The HTTP path listing user's projects

projectsUrl URI

The HTTP URL listing user's projects

projectsV2 ProjectV2Connection

A list of projects under the owner.

pronouns String

The user's profile pronouns

publicKeys PublicKeyConnection

A list of public keys associated with this user.

pullRequests PullRequestConnection

A list of pull requests associated with this user.

recentProjects ProjectV2Connection

Recent projects that this user has modified in the context of the owner.

repositories RepositoryConnection

A list of repositories that the user owns.

repositoriesContributedTo RepositoryConnection

A list of repositories that the user recently contributed to.

repository Repository

Find Repository.

repositoryDiscussionComments DiscussionCommentConnection

Discussion comments this user has authored.

repositoryDiscussions DiscussionConnection

Discussions this user has started.

resourcePath URI

The HTTP path for this user

savedReplies SavedReplyConnection

Replies this user has saved

socialAccounts SocialAccountConnection

The user's social media accounts, ordered as they appear on the user's profile.

sponsoring SponsorConnection

List of users and organizations this entity is sponsoring.

List of sponsors for this user or organization.

sponsorsActivities SponsorsActivityConnection

Events involving this sponsorable, such as new sponsorships.

sponsorsListing SponsorsListing

The GitHub Sponsors listing for this user or organization.

sponsorshipForViewerAsSponsor Sponsorship

The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.

sponsorshipForViewerAsSponsorable Sponsorship

The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.

sponsorshipNewsletters SponsorshipNewsletterConnection

List of sponsorship updates sent from this sponsorable to sponsors.

sponsorshipsAsMaintainer SponsorshipConnection

The sponsorships where this user or organization is the maintainer receiving the funds.

sponsorshipsAsSponsor SponsorshipConnection

The sponsorships where this user or organization is the funder.

starredRepositories StarredRepositoryConnection

Repositories the user has starred.

status UserStatus

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

suggestedListNames UserListSuggestion []

Suggested names for user lists

topRepositories RepositoryConnection

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

totalSponsorshipAmountAsSponsorInCents Int

The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has
spent on GitHub to fund sponsorships. Only returns a value when viewed by the
user themselves or by a user who can manage sponsorships for the requested organization.

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.

viewerCanSponsor Boolean

Whether or not the viewer is able to sponsor this user/organization.

viewerIsFollowing Boolean

Whether or not this user is followed by the viewer. Inverse of isFollowingViewer.

viewerIsSponsoring Boolean

True if the viewer is sponsoring this user/organization.

A list of repositories the given user is watching.

websiteUrl URI

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

API:
Github GraphQL API
API:
Github GraphQL API