OBJECT
User
A user is an individual's account on GitHub that owns repositories and can make new content.
link GraphQL Schema definition
- type User implements Node, Author, RepositoryOwner, UniformResourceLocatable {
- # A URL pointing to the user's public avatar.
- #
- # Arguments
- # size: The size of the resulting square image.
- Int): String! ( :
- # The user's public profile bio.
- String :
- # The user's public profile bio as HTML.
- HTML! :
- # The user's public profile company.
- String :
- # The user's public profile company as HTML.
- HTML! :
- # A list of repositories that the user recently contributed to.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- (
- Int, :
- String, :
- Int, :
- String :
- ): RepositoryConnection!
- # Identifies the date and time when the object was created.
- DateTime! :
- # Identifies the primary key from the database.
- Int @deprecated( reason: "Exposed database IDs will eventually be removed in favor of global Relay IDs." ) :
- # The user's public profile email.
- String :
- # A list of users the given user is followed by.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- Int, : String, : Int, : String): FollowerConnection! ( :
- # A list of users the given user is following.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- Int, : String, : Int, : String): FollowingConnection! ( :
- # Find gist by repo name.
- #
- # Arguments
- # name: The gist name to find.
- String!): Gist ( :
- # A list of the Gists the user has created.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- # visibility: Allows filtering by gist visibility.
- (
- Int, :
- String, :
- Int, :
- String, :
- GistVisibility :
- ): GistConnection!
- ID! :
- # 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.
- Boolean! :
- # The user's public profile location.
- String :
- # The username used to login.
- String! :
- # The user's public profile name.
- String :
- # Find an organization by its login that the user belongs to.
- #
- # Arguments
- # login: The login of the organization to find.
- String!): Organization ( :
- # A list of organizations the user belongs to.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- Int, : String, : Int, : String): OrganizationConnection! ( :
- # The HTTP path for this user
- URI! :
- # A list of repositories this user has pinned to their profile
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- (
- Int, :
- String, :
- Int, :
- String :
- ): RepositoryConnection!
- # A list of pull requests assocated with this user.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- # states: A list of states to filter the pull requests by.
- # labels: A list of label names to filter the pull requests by.
- # headRefName: The head ref name to filter the pull requests by.
- # baseRefName: The base ref name to filter the pull requests by.
- (
- Int, :
- String, :
- Int, :
- String, :
- PullRequestState!], : [
- String!], : [
- String, :
- String :
- ): PullRequestConnection!
- # A list of repositories that the user owns.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- # privacy: If non-null, filters repositories according to privacy
- # isFork: If non-null, filters repositories according to whether
- # they are forks of another repository
- # orderBy: Ordering options for repositories returned from the
- # connection
- # affiliation: Affiliation options for repositories returned from
- # the connection
- # isLocked: If non-null, filters repositories according to
- # whether they have been locked
- (
- Int, :
- String, :
- Int, :
- String, :
- RepositoryPrivacy, :
- Boolean, :
- RepositoryOrder, :
- RepositoryAffiliation], : [
- Boolean :
- ): RepositoryConnection!
- # Find Repository.
- #
- # Arguments
- # name: Name of Repository to find.
- String!): Repository ( :
- # Repositories the user has starred.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- # ownedByViewer: Filters starred repositories to only return
- # repositories owned by the viewer.
- # orderBy: Order for connection
- (
- Int, :
- String, :
- Int, :
- String, :
- Boolean, :
- StarOrder :
- ): StarredRepositoryConnection!
- # Identifies the date and time when the object was last updated.
- DateTime! :
- # The HTTP url for this user
- URI! :
- # Whether or not the viewer is able to follow the user.
- Boolean! :
- # Whether or not this user is followed by the viewer.
- Boolean! :
- # A list of repositories the given user is watching.
- #
- # Arguments
- # first: Returns the first _n_ elements from the list.
- # after: Returns the elements in the list that come after the
- # specified global ID.
- # last: Returns the last _n_ elements from the list.
- # before: Returns the elements in the list that come before the
- # specified global ID.
- Int, : String, : Int, : String): RepositoryConnection! ( :
- # A URL pointing to the user's public website/blog.
- String :
- }
link Require by
- AssignedEventRepresents an 'assigned' event on a given issue or pull request.
- BaseRefForcePushedEventRepresents a 'base_ref_force_pushed' event on a given pull request.
- ClosedEventRepresents a 'closed' event on a given issue or pull request.
- CommitCommentRepresents a comment on a given Commit.
- DemilestonedEventRepresents a 'demilestoned' event on a given issue or pull request.
- DeployedEventRepresents a 'deployed' event on a given issue or pull request.
- DeploymentRepresents triggered deployment instance.
- DeploymentStatusDescribes the status of a given deployment attempt.
- FollowerConnectionThe connection type for User.
- FollowingConnectionThe connection type for User.
- GitActorRepresents an actor in a Git commit (ie. an author or committer).
- GitSignatureInformation about a signature (GPG or S/MIME) on a Commit or Tag.
- GpgSignatureRepresents a GPG signature on a Commit or Tag.
- HeadRefDeletedEventRepresents a 'head_ref_deleted' event on a given pull request.
- HeadRefForcePushedEventRepresents a 'head_ref_force_pushed' event on a given pull request.
- HeadRefRestoredEventRepresents a 'head_ref_restored' event on a given pull request.
- IssueEventRepresents an issue event.
- LabeledEventRepresents a 'labeled' event on a given issue or pull request.
- LockedEventRepresents a 'locked' event on a given issue or pull request.
- MentionedEventRepresents a 'mentioned' event on a given issue or pull request.
- MergedEventRepresents a 'merged' event on a given pull request.
- MilestoneRepresents a Milestone object on a given repository.
- MilestonedEventRepresents a 'milestoned' event on a given issue or pull request.
- OrganizationInvitationAn Invitation for a user to an organization.
- ProjectProjects manage issues, pull requests and notes within a project owner.
- ProjectCardA card in a project.
- ProtectedBranchA repository protected branch.
- QueryThe query root of GitHub's GraphQL interface.
- ReactingUserConnectionThe connection type for User.
- ReactingUserEdgeRepresents a user that's made a reaction.
- ReactionAn emoji reaction to a particular piece of content.
- ReferencedEventRepresents a 'referenced' event on a given issue or pull request.
- RemoveOutsideCollaboratorPayloadAutogenerated return type of RemoveOutsideCollaborator
- RenamedEventRepresents a 'renamed' event on a given issue or pull request or pull request.
- ReopenedEventRepresents a 'reopened' event on a given issue or pull request.
- RepositoryInvitationAn invitation for a user to be added to a repository.
- ReviewDismissalAllowanceActorTypes that can be an actor.
- ReviewDismissedEventRepresents a 'review_dismissed' event on a given issue or pull request.
- ReviewRequestA request for a user to review a pull request.
- ReviewRequestedEventRepresents an 'review_requested' event on a given pull request.
- ReviewRequestRemovedEventRepresents an 'review_request_removed' event on a given pull request.
- SearchResultItemThe results of a search.
- SmimeSignatureRepresents an S/MIME signature on a Commit or Tag.
- StargazerConnectionThe connection type for User.
- StargazerEdgeRepresents a user that's starred a repository.
- SubscribedEventRepresents a 'subscribed' event on a given issue or pull request.
- UnassignedEventRepresents a 'unassigned' event on a given issue or pull request.
- UnknownSignatureRepresents an unknown signature on a Commit or Tag.
- UnlabeledEventRepresents a 'unlabeled' event on a given issue or pull request.
- UnlockedEventRepresents a 'unlocked' event on a given issue or pull request.
- UnsubscribedEventRepresents a 'unsubscribed' event on a given issue or pull request.
- UserConnectionThe connection type for User.
- UserEdgeAn edge in a connection.