Skip to main content

Enterprise Server 3.21 est actuellement disponible en tant que version candidate.

Reference documentation for GraphQL schema types in the Users category.

Dans cet article

Queries

user

Query

Lookup a user by login.

Type: User

Arguments pour user

NomDescription

login (String!)

The user's login.

users

Query

A list of users.

Type: UserConnection!

Arguments pour users

NomDescription

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.

viewer

Query

The currently authenticated user.

Type: User!

Mutations

changeUserStatus

Mutation

Update your status on GitHub.

Champs d’entrée pour changeUserStatus

Champs de retour pour changeUserStatus

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

status (UserStatus)

Your updated status.

createUserList

Mutation

Creates a new user list.

Champs d’entrée pour createUserList

Champs de retour pour createUserList

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

list (UserList)

The list that was just created.

viewer (User)

The user who created the list.

deleteUserList

Mutation

Deletes a user list.

Champs d’entrée pour deleteUserList

Champs de retour pour deleteUserList

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

user (User)

The owner of the list that will be deleted.

followUser

Mutation

Follow a user.

Champs d’entrée pour followUser

Champs de retour pour followUser

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

user (User)

The user that was followed.

unfollowUser

Mutation

Unfollow a user.

Champs d’entrée pour unfollowUser

Champs de retour pour unfollowUser

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

user (User)

The user that was unfollowed.

updateUserList

Mutation

Updates an existing user list.

Champs d’entrée pour updateUserList

Champs de retour pour updateUserList

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

list (UserList)

The list that was just updated.

updateUserListsForItem

Mutation

Updates which of the viewer's lists an item belongs to.

Champs d’entrée pour updateUserListsForItem

Champs de retour pour updateUserListsForItem

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

item (UserListItems)

The item that was added.

lists ([UserList!])

The lists to which this item belongs.

user (User)

The user who owns the lists.

Objects

ActorConnection

Object

The connection type for Actor.

Champs pour ActorConnection

NomDescription

edges ([ActorEdge])

A list of edges.

nodes ([Actor])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

ActorEdge

Object

An edge in a connection.

Champs pour ActorEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (Actor)

The item at the end of the edge.

ActorLocation

Object

Location information for an actor.

Champs pour ActorLocation

NomDescription

city (String)

City.

country (String)

Country name.

countryCode (String)

Country code.

region (String)

Region name.

regionCode (String)

Region or state code.

ContributionCalendar

Object

A calendar of contributions made on GitHub by a user.

Champs pour ContributionCalendar

NomDescription

colors ([String!]!)

A list of hex color codes used in this calendar. The darker the color, the more contributions it represents.

isHalloween (Boolean!)

Determine if the color set was chosen because it's currently Halloween.

months ([ContributionCalendarMonth!]!)

A list of the months of contributions in this calendar.

totalContributions (Int!)

The count of total contributions in the calendar.

weeks ([ContributionCalendarWeek!]!)

A list of the weeks of contributions in this calendar.

ContributionCalendarDay

Object

Represents a single day of contributions on GitHub by a user.

Champs pour ContributionCalendarDay

NomDescription

color (String!)

The hex color code that represents how many contributions were made on this day compared to others in the calendar.

contributionCount (Int!)

How many contributions were made by the user on this day.

contributionLevel (ContributionLevel!)

Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar.

date (Date!)

The day this square represents.

weekday (Int!)

A number representing which day of the week this square represents, e.g., 1 is Monday.

ContributionCalendarMonth

Object

A month of contributions in a user's contribution graph.

Champs pour ContributionCalendarMonth

NomDescription

firstDay (Date!)

The date of the first day of this month.

name (String!)

The name of the month.

totalWeeks (Int!)

How many weeks started in this month.

year (Int!)

The year the month occurred in.

ContributionCalendarWeek

Object

A week of contributions in a user's contribution graph.

Champs pour ContributionCalendarWeek

NomDescription

contributionDays ([ContributionCalendarDay!]!)

The days of contributions in this week.

firstDay (Date!)

The date of the earliest square in this week.

ContributionsCollection

Object

A collection of contributions made by a user, including opened issues, commits, and pull requests. Contributions in private and internal repositories are only included with the optional read:user scope.

Champs pour ContributionsCollection

NomDescription

commitContributionsByRepository ([CommitContributionsByRepository!]!)

Commit contributions made by the user, grouped by repository.

Arguments pour commitContributionsByRepository

  • maxRepositories (Int)

    How many repositories should be included.

    The default value is 25.

contributionCalendar (ContributionCalendar!)

A calendar of this user's contributions on GitHub.

contributionYears ([Int!]!)

The years the user has been making contributions with the most recent year first.

doesEndInCurrentMonth (Boolean!)

Determine if this collection's time span ends in the current month.

earliestRestrictedContributionDate (Date)

The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts.

endedAt (DateTime!)

The ending date and time of this collection.

firstIssueContribution (CreatedIssueOrRestrictedContribution)

The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.

firstPullRequestContribution (CreatedPullRequestOrRestrictedContribution)

The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.

firstRepositoryContribution (CreatedRepositoryOrRestrictedContribution)

The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned.

hasActivityInThePast (Boolean!)

Does the user have any more activity in the timeline that occurred prior to the collection's time range?.

hasAnyContributions (Boolean!)

Determine if there are any contributions in this collection.

hasAnyRestrictedContributions (Boolean!)

Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts.

isSingleDay (Boolean!)

Whether or not the collector's time span is all within the same day.

issueContributions (CreatedIssueContributionConnection!)

A list of issues the user opened.

Arguments pour issueContributions

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

  • excludeFirst (Boolean)

    Should the user's first issue ever be excluded from the result.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented issue be excluded from the result.

    The default value is false.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ContributionOrder)

    Ordering options for contributions returned from the connection.

issueContributionsByRepository ([IssueContributionsByRepository!]!)

Issue contributions made by the user, grouped by repository.

Arguments pour issueContributionsByRepository

  • excludeFirst (Boolean)

    Should the user's first issue ever be excluded from the result.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented issue be excluded from the result.

    The default value is false.

  • maxRepositories (Int)

    How many repositories should be included.

    The default value is 25.

joinedGitHubContribution (JoinedGitHubContribution)

When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false.

latestRestrictedContributionDate (Date)

The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts.

mostRecentCollectionWithActivity (ContributionsCollection)

When this collection's time range does not include any activity from the user, use this to get a different collection from an earlier time range that does have activity.

mostRecentCollectionWithoutActivity (ContributionsCollection)

Returns a different contributions collection from an earlier time range than this one that does not have any contributions.

popularIssueContribution (CreatedIssueContribution)

The issue the user opened on GitHub that received the most comments in the specified time frame.

popularPullRequestContribution (CreatedPullRequestContribution)

The pull request the user opened on GitHub that received the most comments in the specified time frame.

pullRequestContributions (CreatedPullRequestContributionConnection!)

Pull request contributions made by the user.

Arguments pour pullRequestContributions

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

  • excludeFirst (Boolean)

    Should the user's first pull request ever be excluded from the result.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented pull request be excluded from the result.

    The default value is false.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ContributionOrder)

    Ordering options for contributions returned from the connection.

pullRequestContributionsByRepository ([PullRequestContributionsByRepository!]!)

Pull request contributions made by the user, grouped by repository.

Arguments pour pullRequestContributionsByRepository

  • excludeFirst (Boolean)

    Should the user's first pull request ever be excluded from the result.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented pull request be excluded from the result.

    The default value is false.

  • maxRepositories (Int)

    How many repositories should be included.

    The default value is 25.

pullRequestReviewContributions (CreatedPullRequestReviewContributionConnection!)

Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user.

Arguments pour pullRequestReviewContributions

  • 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 (ContributionOrder)

    Ordering options for contributions returned from the connection.

pullRequestReviewContributionsByRepository ([PullRequestReviewContributionsByRepository!]!)

Pull request review contributions made by the user, grouped by repository.

Arguments pour pullRequestReviewContributionsByRepository

  • maxRepositories (Int)

    How many repositories should be included.

    The default value is 25.

repositoryContributions (CreatedRepositoryContributionConnection!)

A list of repositories owned by the user that the user created in this time range.

Arguments pour repositoryContributions

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

  • excludeFirst (Boolean)

    Should the user's first repository ever be excluded from the result.

    The default value is false.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ContributionOrder)

    Ordering options for contributions returned from the connection.

restrictedContributionsCount (Int!)

A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts.

startedAt (DateTime!)

The beginning date and time of this collection.

totalCommitContributions (Int!)

How many commits were made by the user in this time span.

totalIssueContributions (Int!)

How many issues the user opened.

Arguments pour totalIssueContributions

  • excludeFirst (Boolean)

    Should the user's first issue ever be excluded from this count.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented issue be excluded from this count.

    The default value is false.

totalPullRequestContributions (Int!)

How many pull requests the user opened.

Arguments pour totalPullRequestContributions

  • excludeFirst (Boolean)

    Should the user's first pull request ever be excluded from this count.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented pull request be excluded from this count.

    The default value is false.

totalPullRequestReviewContributions (Int!)

How many pull request reviews the user left.

totalRepositoriesWithContributedCommits (Int!)

How many different repositories the user committed to.

totalRepositoriesWithContributedIssues (Int!)

How many different repositories the user opened issues in.

Arguments pour totalRepositoriesWithContributedIssues

  • excludeFirst (Boolean)

    Should the user's first issue ever be excluded from this count.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented issue be excluded from this count.

    The default value is false.

totalRepositoriesWithContributedPullRequestReviews (Int!)

How many different repositories the user left pull request reviews in.

totalRepositoriesWithContributedPullRequests (Int!)

How many different repositories the user opened pull requests in.

Arguments pour totalRepositoriesWithContributedPullRequests

  • excludeFirst (Boolean)

    Should the user's first pull request ever be excluded from this count.

    The default value is false.

  • excludePopular (Boolean)

    Should the user's most commented pull request be excluded from this count.

    The default value is false.

totalRepositoryContributions (Int!)

How many repositories the user created.

Arguments pour totalRepositoryContributions

  • excludeFirst (Boolean)

    Should the user's first repository ever be excluded from this count.

    The default value is false.

user (User!)

The user who made the contributions in this collection.

CreatedCommitContribution

Object

Represents the contribution a user made by committing to a repository.

CreatedCommitContribution Met en œuvre

Champs pour CreatedCommitContribution

NomDescription

commitCount (Int!)

How many commits were made on this day to this repository by the user.

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

repository (Repository!)

The repository the user made a commit in.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

CreatedCommitContributionConnection

Object

The connection type for CreatedCommitContribution.

Champs pour CreatedCommitContributionConnection

NomDescription

edges ([CreatedCommitContributionEdge])

A list of edges.

nodes ([CreatedCommitContribution])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of commits across days and repositories in the connection.

CreatedCommitContributionEdge

Object

An edge in a connection.

Champs pour CreatedCommitContributionEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (CreatedCommitContribution)

The item at the end of the edge.

CreatedIssueContribution

Object

Represents the contribution a user made on GitHub by opening an issue.

CreatedIssueContribution Met en œuvre

Champs pour CreatedIssueContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

issue (Issue!)

The issue that was opened.

occurredAt (DateTime!)

When this contribution was made.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

CreatedIssueContributionConnection

Object

The connection type for CreatedIssueContribution.

Champs pour CreatedIssueContributionConnection

NomDescription

edges ([CreatedIssueContributionEdge])

A list of edges.

nodes ([CreatedIssueContribution])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

CreatedIssueContributionEdge

Object

An edge in a connection.

Champs pour CreatedIssueContributionEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (CreatedIssueContribution)

The item at the end of the edge.

CreatedPullRequestContribution

Object

Represents the contribution a user made on GitHub by opening a pull request.

CreatedPullRequestContribution Met en œuvre

Champs pour CreatedPullRequestContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

pullRequest (PullRequest!)

The pull request that was opened.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

CreatedPullRequestContributionConnection

Object

The connection type for CreatedPullRequestContribution.

Champs pour CreatedPullRequestContributionConnection

NomDescription

edges ([CreatedPullRequestContributionEdge])

A list of edges.

nodes ([CreatedPullRequestContribution])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

CreatedPullRequestContributionEdge

Object

An edge in a connection.

Champs pour CreatedPullRequestContributionEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (CreatedPullRequestContribution)

The item at the end of the edge.

CreatedPullRequestReviewContribution

Object

Represents the contribution a user made by leaving a review on a pull request.

CreatedPullRequestReviewContribution Met en œuvre

Champs pour CreatedPullRequestReviewContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

pullRequest (PullRequest!)

The pull request the user reviewed.

pullRequestReview (PullRequestReview!)

The review the user left on the pull request.

repository (Repository!)

The repository containing the pull request that the user reviewed.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

CreatedPullRequestReviewContributionConnection

Object

The connection type for CreatedPullRequestReviewContribution.

Champs pour CreatedPullRequestReviewContributionConnection

NomDescription

edges ([CreatedPullRequestReviewContributionEdge])

A list of edges.

nodes ([CreatedPullRequestReviewContribution])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

CreatedPullRequestReviewContributionEdge

Object

An edge in a connection.

Champs pour CreatedPullRequestReviewContributionEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (CreatedPullRequestReviewContribution)

The item at the end of the edge.

CreatedRepositoryContribution

Object

Represents the contribution a user made on GitHub by creating a repository.

CreatedRepositoryContribution Met en œuvre

Champs pour CreatedRepositoryContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

repository (Repository!)

The repository that was created.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

CreatedRepositoryContributionConnection

Object

The connection type for CreatedRepositoryContribution.

Champs pour CreatedRepositoryContributionConnection

NomDescription

edges ([CreatedRepositoryContributionEdge])

A list of edges.

nodes ([CreatedRepositoryContribution])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

CreatedRepositoryContributionEdge

Object

An edge in a connection.

Champs pour CreatedRepositoryContributionEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (CreatedRepositoryContribution)

The item at the end of the edge.

EnterpriseAdministratorConnection

Object

The connection type for User.

Champs pour EnterpriseAdministratorConnection

NomDescription

edges ([EnterpriseAdministratorEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

EnterpriseAdministratorEdge

Object

A User who is an administrator of an enterprise.

Champs pour EnterpriseAdministratorEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User)

The item at the end of the edge.

role (EnterpriseAdministratorRole!)

The role of the administrator.

EnterpriseOutsideCollaboratorConnection

Object

The connection type for User.

Champs pour EnterpriseOutsideCollaboratorConnection

NomDescription

edges ([EnterpriseOutsideCollaboratorEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

EnterpriseOutsideCollaboratorEdge

Object

A User who is an outside collaborator of an enterprise through one or more organizations.

Champs pour EnterpriseOutsideCollaboratorEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User)

The item at the end of the edge.

repositories (EnterpriseRepositoryInfoConnection!)

The enterprise organization repositories this user is a member of.

Arguments pour repositories

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

FollowerConnection

Object

The connection type for User.

Champs pour FollowerConnection

NomDescription

edges ([UserEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

FollowingConnection

Object

The connection type for User.

Champs pour FollowingConnection

NomDescription

edges ([UserEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

GenericHovercardContext

Object

A generic hovercard context with a message and icon.

GenericHovercardContext Met en œuvre

Champs pour GenericHovercardContext

NomDescription

message (String!)

A string describing this context.

octicon (String!)

An octicon to accompany this context.

Hovercard

Object

Detail needed to display a hovercard for a user.

Champs pour Hovercard

NomDescription

contexts ([HovercardContext!]!)

Each of the contexts for this hovercard.

JoinedGitHubContribution

Object

Represents a user signing up for a GitHub account.

JoinedGitHubContribution Met en œuvre

Champs pour JoinedGitHubContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

OrganizationEnterpriseOwnerConnection

Object

The connection type for User.

Champs pour OrganizationEnterpriseOwnerConnection

NomDescription

edges ([OrganizationEnterpriseOwnerEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

OrganizationEnterpriseOwnerEdge

Object

An enterprise owner in the context of an organization that is part of the enterprise.

Champs pour OrganizationEnterpriseOwnerEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User)

The item at the end of the edge.

organizationRole (RoleInOrganization!)

The role of the owner with respect to the organization.

OrganizationMemberConnection

Object

A list of users who belong to the organization.

Champs pour OrganizationMemberConnection

NomDescription

edges ([OrganizationMemberEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

OrganizationMemberEdge

Object

Represents a user within an organization.

Champs pour OrganizationMemberEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

hasTwoFactorEnabled (Boolean)

Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer.

node (User)

The item at the end of the edge.

role (OrganizationMemberRole)

The role this user has in the organization.

PinnableItemConnection

Object

The connection type for PinnableItem.

Champs pour PinnableItemConnection

NomDescription

edges ([PinnableItemEdge])

A list of edges.

nodes ([PinnableItem])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

PinnableItemEdge

Object

An edge in a connection.

Champs pour PinnableItemEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (PinnableItem)

The item at the end of the edge.

ProfileItemShowcase

Object

A curatable list of repositories relating to a repository owner, which defaults to showing the most popular repositories they own.

Champs pour ProfileItemShowcase

NomDescription

hasPinnedItems (Boolean!)

Whether or not the owner has pinned any repositories or gists.

items (PinnableItemConnection!)

The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned.

Arguments pour items

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

PublicKey

Object

A user's public key.

PublicKey Met en œuvre

Champs pour PublicKey

NomDescription

accessedAt (DateTime)

The last time this authorization was used to perform an action. Values will be null for keys not owned by the user.

createdAt (DateTime)

Identifies the date and time when the key was created. Keys created before March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user.

fingerprint (String!)

The fingerprint for this PublicKey.

id (ID!)

The Node ID of the PublicKey object.

isReadOnly (Boolean)

Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user.

key (String!)

The public key string.

updatedAt (DateTime)

Identifies the date and time when the key was updated. Keys created before March 5th, 2014 may have inaccurate values. Values will be null for keys not owned by the user.

PublicKeyConnection

Object

The connection type for PublicKey.

Champs pour PublicKeyConnection

NomDescription

edges ([PublicKeyEdge])

A list of edges.

nodes ([PublicKey])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

PublicKeyEdge

Object

An edge in a connection.

Champs pour PublicKeyEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (PublicKey)

The item at the end of the edge.

ReactingUserConnection

Object

The connection type for User.

Champs pour ReactingUserConnection

NomDescription

edges ([ReactingUserEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

ReactingUserEdge

Object

Represents a user that's made a reaction.

Champs pour ReactingUserEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User!)

N/A

reactedAt (DateTime!)

The moment when the user made the reaction.

RepositoryCollaboratorConnection

Object

The connection type for User.

Champs pour RepositoryCollaboratorConnection

NomDescription

edges ([RepositoryCollaboratorEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryCollaboratorEdge

Object

Represents a user who is a collaborator of a repository.

Champs pour RepositoryCollaboratorEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User!)

N/A

permission (RepositoryPermission!)

The permission the user has on the repository.

permissionSources ([PermissionSource!])

A list of sources for the user's access to the repository.

RestrictedContribution

Object

Represents a private contribution a user made on GitHub.

RestrictedContribution Met en œuvre

Champs pour RestrictedContribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

SavedReply

Object

A Saved Reply is text a user can use to reply quickly.

SavedReply Met en œuvre

Champs pour SavedReply

NomDescription

body (String!)

The body of the saved reply.

bodyHTML (HTML!)

The saved reply body rendered to HTML.

databaseId (Int)

Identifies the primary key from the database.

id (ID!)

The Node ID of the SavedReply object.

title (String!)

The title of the saved reply.

user (Actor)

The user that saved this reply.

SavedReplyConnection

Object

The connection type for SavedReply.

Champs pour SavedReplyConnection

NomDescription

edges ([SavedReplyEdge])

A list of edges.

nodes ([SavedReply])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

SavedReplyEdge

Object

An edge in a connection.

Champs pour SavedReplyEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (SavedReply)

The item at the end of the edge.

SocialAccount

Object

Social media profile associated with a user.

Champs pour SocialAccount

NomDescription

displayName (String!)

Name of the social media account as it appears on the profile.

provider (SocialAccountProvider!)

Software or company that hosts the social media account.

url (URI!)

URL of the social media account.

SocialAccountConnection

Object

The connection type for SocialAccount.

Champs pour SocialAccountConnection

NomDescription

edges ([SocialAccountEdge])

A list of edges.

nodes ([SocialAccount])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

SocialAccountEdge

Object

An edge in a connection.

Champs pour SocialAccountEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (SocialAccount)

The item at the end of the edge.

StargazerConnection

Object

The connection type for User.

Champs pour StargazerConnection

NomDescription

edges ([StargazerEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

StargazerEdge

Object

Represents a user that's starred a repository.

Champs pour StargazerEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User!)

N/A

starredAt (DateTime!)

Identifies when the item was starred.

TeamMemberConnection

Object

The connection type for User.

Champs pour TeamMemberConnection

NomDescription

edges ([TeamMemberEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

TeamMemberEdge

Object

Represents a user who is a member of a team.

Champs pour TeamMemberEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

memberAccessResourcePath (URI!)

The HTTP path to the organization's member access page.

memberAccessUrl (URI!)

The HTTP URL to the organization's member access page.

node (User!)

N/A

role (TeamMemberRole!)

The role the member has on the team.

User

Object

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

User Met en œuvre

Champs pour User

NomDescription

anyPinnableItems (Boolean!)

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

Arguments pour anyPinnableItems

avatarUrl (URI!)

A URL pointing to the user's public avatar.

Arguments pour avatarUrl

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

canReceiveOrganizationEmailsWhenNotificationsRestricted (Boolean!)

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

Arguments pour canReceiveOrganizationEmailsWhenNotificationsRestricted

  • login (String!)

    The login of the organization to check.

commitComments (CommitCommentConnection!)

A list of commit comments made by this user.

Arguments pour commitComments

  • 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 (ContributionsCollection!)

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

Arguments pour contributionsCollection

  • from (DateTime)

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

  • organizationID (ID)

    The ID of the organization used to filter contributions.

  • to (DateTime)

    Only contributions made before and up to (including) this time will be counted. If omitted, defaults to the current time or one year from the provided from argument.

copilotEndpoints (CopilotEndpoints)

The user's Copilot endpoint information.

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.

Arguments pour enterprises

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

  • membershipType (EnterpriseMembershipType)

    Filter enterprises returned based on the user's membership type.

    The default value is ALL.

followers (FollowerConnection!)

A list of users the given user is followed by.

Arguments pour followers

  • 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 (FollowingConnection!)

A list of users the given user is following.

Arguments pour following

  • 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 (Gist)

Find gist by repo name.

Arguments pour gist

  • name (String!)

    The gist name to find.

gistComments (GistCommentConnection!)

A list of gist comments made by this user.

Arguments pour gistComments

  • 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 (GistConnection!)

A list of the Gists the user has created.

Arguments pour gists

  • 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 (GistOrder)

    Ordering options for gists returned from the connection.

  • privacy (GistPrivacy)

    Filters Gists according to privacy.

hovercard (Hovercard!)

The hovercard information for this user in a given context.

Arguments pour hovercard

  • primarySubjectId (ID)

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

id (ID!)

The Node ID of the User object.

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.

isViewer (Boolean!)

Whether or not this user is the viewing user.

issueComments (IssueCommentConnection!)

A list of issue comments made by this user.

Arguments pour issueComments

  • 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 (IssueCommentOrder)

    Ordering options for issue comments returned from the connection.

issues (IssueConnection!)

A list of issues associated with this user.

Arguments pour issues

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

  • filterBy (IssueFilters)

    Filtering options for issues returned from the connection.

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

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.

lists (UserListConnection!)

A user-curated list of repositories.

Arguments pour lists

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

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.

Arguments pour organization

  • login (String!)

    The login of the organization to find.

organizationVerifiedDomainEmails ([String!]!)

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

Arguments pour organizationVerifiedDomainEmails

  • login (String!)

    The login of the organization to match verified domains from.

organizations (OrganizationConnection!)

A list of organizations the user belongs to.

Arguments pour organizations

  • 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 (PackageConnection!)

A list of packages under the owner.

Arguments pour packages

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

  • packageType (PackageType)

    Filter registry package by type.

  • repositoryId (ID)

    Find packages in a repository by ID.

pinnableItems (PinnableItemConnection!)

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

Arguments pour pinnableItems

  • 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 (PinnableItemConnection!)

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

Arguments pour pinnedItems

  • 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 (Project)

Find project by number.

Avertissement

project is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

Arguments pour project

  • number (Int!)

    The project number to find.

projectV2 (ProjectV2)

Find a project by number.

Arguments pour projectV2

  • number (Int!)

    The project number.

projects (ProjectConnection!)

A list of projects under the owner.

Avertissement

projects is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

Arguments pour projects

  • 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 (ProjectOrder)

    Ordering options for projects returned from the connection.

  • search (String)

    Query to search projects by, currently only searching by name.

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.

Arguments pour projectsV2

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

  • query (String)

    A project to search for under the owner.

pronouns (String)

The user's profile pronouns.

publicKeys (PublicKeyConnection!)

A list of public keys associated with this user.

Arguments pour publicKeys

  • 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 (PullRequestConnection!)

A list of pull requests associated with this user.

Arguments pour pullRequests

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • 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 cursor.

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

recentProjects (ProjectV2Connection!)

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

Arguments pour recentProjects

  • 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 (RepositoryConnection!)

A list of repositories that the user owns.

Arguments pour repositories

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

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

  • hasIssuesEnabled (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

  • isArchived (Boolean)

    If non-null, filters repositories according to whether they are archived and not maintained.

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

  • ownerAffiliations ([RepositoryAffiliation])

    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.

  • privacy (RepositoryPrivacy)

    If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument.

  • visibility (RepositoryVisibility)

    If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.

repositoriesContributedTo (RepositoryConnection!)

A list of repositories that the user recently contributed to.

Arguments pour repositoriesContributedTo

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

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

  • hasIssues (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

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

repository (Repository)

Find Repository.

Arguments pour repository

  • followRenames (Boolean)

    Follow repository renames. If disabled, a repository referenced by its old name will return an error.

    The default value is true.

  • name (String!)

    Name of Repository to find.

repositoryDiscussionComments (DiscussionCommentConnection!)

Discussion comments this user has authored.

Arguments pour repositoryDiscussionComments

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

  • onlyAnswers (Boolean)

    Filter discussion comments to only those that were marked as the answer.

    The default value is false.

  • repositoryId (ID)

    Filter discussion comments to only those in a specific repository.

repositoryDiscussions (DiscussionConnection!)

Discussions this user has started.

Arguments pour repositoryDiscussions

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • answered (Boolean)

    Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions.

  • 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 (DiscussionOrder)

    Ordering options for discussions returned from the connection.

  • repositoryId (ID)

    Filter discussions to only those in a specific repository.

resourcePath (URI!)

The HTTP path for this user.

savedReplies (SavedReplyConnection)

Replies this user has saved.

Arguments pour savedReplies

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

socialAccounts (SocialAccountConnection!)

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

Arguments pour socialAccounts

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

starredRepositories (StarredRepositoryConnection!)

Repositories the user has starred.

Arguments pour starredRepositories

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

status (UserStatus)

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

suggestedListNames ([UserListSuggestion!]!)

Suggested names for user lists.

suspendedAt (DateTime)

Identifies the date and time when the user was suspended.

topRepositories (RepositoryConnection!)

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

Arguments pour topRepositories

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

userViewType (UserViewType!)

Whether the request returns publicly visible information or privately visible information about the 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.

Avertissement

viewerCanCreateProjects is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

viewerCanFollow (Boolean!)

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

viewerCopilotAgentCreatesChannel (String)

Channel value for subscribing to live updates for session creations.

viewerCopilotAgentLogUpdatesChannel (String)

Channel value for subscribing to live updates for session log updates.

viewerCopilotAgentTaskUpdatesChannel (String)

Channel value for subscribing to live updates for task updates.

viewerCopilotAgentUpdatesChannel (String)

Channel value for subscribing to live updates for session updates.

viewerIsFollowing (Boolean!)

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

watching (RepositoryConnection!)

A list of repositories the given user is watching.

Arguments pour watching

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

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

  • hasIssuesEnabled (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

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

  • ownerAffiliations ([RepositoryAffiliation])

    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.

  • privacy (RepositoryPrivacy)

    If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument.

  • visibility (RepositoryVisibility)

    If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.

websiteUrl (URI)

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

UserBlockedEvent

Object

Represents auser_blockedevent on a given user.

UserBlockedEvent Met en œuvre

Champs pour UserBlockedEvent

NomDescription

actor (Actor)

Identifies the actor who performed the event.

blockDuration (UserBlockDuration!)

Number of days that the user was blocked for.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UserBlockedEvent object.

subject (User)

The user who was blocked.

UserConnection

Object

A list of users.

Champs pour UserConnection

NomDescription

edges ([UserEdge])

A list of edges.

nodes ([User])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

UserContentEdit

Object

An edit on user content.

UserContentEdit Met en œuvre

Champs pour UserContentEdit

NomDescription

createdAt (DateTime!)

Identifies the date and time when the object was created.

deletedAt (DateTime)

Identifies the date and time when the object was deleted.

deletedBy (Actor)

The actor who deleted this content.

diff (String)

A summary of the changes for this edit.

editedAt (DateTime!)

When this content was edited.

editor (Actor)

The actor who edited this content.

id (ID!)

The Node ID of the UserContentEdit object.

updatedAt (DateTime!)

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

UserContentEditConnection

Object

A list of edits to content.

Champs pour UserContentEditConnection

NomDescription

edges ([UserContentEditEdge])

A list of edges.

nodes ([UserContentEdit])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

UserContentEditEdge

Object

An edge in a connection.

Champs pour UserContentEditEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (UserContentEdit)

The item at the end of the edge.

UserEdge

Object

Represents a user.

Champs pour UserEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (User)

The item at the end of the edge.

UserEmailMetadata

Object

Email attributes from External Identity.

Champs pour UserEmailMetadata

NomDescription

primary (Boolean)

Boolean to identify primary emails.

type (String)

Type of email.

value (String!)

Email id.

UserList

Object

A user-curated list of repositories.

UserList Met en œuvre

Champs pour UserList

NomDescription

createdAt (DateTime!)

Identifies the date and time when the object was created.

description (String)

The description of this list.

id (ID!)

The Node ID of the UserList object.

isPrivate (Boolean!)

Whether or not this list is private.

items (UserListItemsConnection!)

The items associated with this list.

Arguments pour items

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

lastAddedAt (DateTime!)

The date and time at which this list was created or last had items added to it.

name (String!)

The name of this list.

slug (String!)

The slug of this list.

updatedAt (DateTime!)

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

user (User!)

The user to which this list belongs.

UserListConnection

Object

The connection type for UserList.

Champs pour UserListConnection

NomDescription

edges ([UserListEdge])

A list of edges.

nodes ([UserList])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

UserListEdge

Object

An edge in a connection.

Champs pour UserListEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (UserList)

The item at the end of the edge.

UserListItemsConnection

Object

The connection type for UserListItems.

Champs pour UserListItemsConnection

NomDescription

edges ([UserListItemsEdge])

A list of edges.

nodes ([UserListItems])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

UserListItemsEdge

Object

An edge in a connection.

Champs pour UserListItemsEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (UserListItems)

The item at the end of the edge.

UserListSuggestion

Object

Represents a suggested user list.

Champs pour UserListSuggestion

NomDescription

id (ID)

The ID of the suggested user list.

name (String)

The name of the suggested user list.

UserStatus

Object

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

UserStatus Met en œuvre

Champs pour UserStatus

NomDescription

createdAt (DateTime!)

Identifies the date and time when the object was created.

emoji (String)

An emoji summarizing the user's status.

emojiHTML (HTML)

The status emoji as HTML.

expiresAt (DateTime)

If set, the status will not be shown after this date.

id (ID!)

The Node ID of the UserStatus object.

indicatesLimitedAvailability (Boolean!)

Whether this status indicates the user is not fully available on GitHub.

message (String)

A brief message describing what the user is doing.

organization (Organization)

The organization whose members can see this status. If null, this status is publicly visible.

updatedAt (DateTime!)

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

user (User!)

The user who has this status.

UserStatusConnection

Object

The connection type for UserStatus.

Champs pour UserStatusConnection

NomDescription

edges ([UserStatusEdge])

A list of edges.

nodes ([UserStatus])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

UserStatusEdge

Object

An edge in a connection.

Champs pour UserStatusEdge

NomDescription

cursor (String!)

A cursor for use in pagination.

node (UserStatus)

The item at the end of the edge.

ViewerHovercardContext

Object

A hovercard context with a message describing how the viewer is related.

ViewerHovercardContext Met en œuvre

Champs pour ViewerHovercardContext

NomDescription

message (String!)

A string describing this context.

octicon (String!)

An octicon to accompany this context.

viewer (User!)

Identifies the user who is related to this context.

Interfaces

Actor

Interface

Represents an object which can take actions on GitHub. Typically a User or Bot.

Actor est implémenté par

Champs pour Actor

NomDescription

avatarUrl (URI!)

A URL pointing to the actor's public avatar.

Arguments pour avatarUrl

  • size (Int)

    The size of the resulting square image.

login (String!)

The username of the actor.

resourcePath (URI!)

The HTTP path for this actor.

url (URI!)

The HTTP URL for this actor.

Contribution

Interface

Represents a contribution a user made on GitHub, such as opening an issue.

Contribution est implémenté par

Champs pour Contribution

NomDescription

isRestricted (Boolean!)

Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access.

occurredAt (DateTime!)

When this contribution was made.

resourcePath (URI!)

The HTTP path for this contribution.

url (URI!)

The HTTP URL for this contribution.

user (User!)

The user who made this contribution.

HovercardContext

Interface

An individual line of a hovercard.

HovercardContext est implémenté par

Champs pour HovercardContext

NomDescription

message (String!)

A string describing this context.

octicon (String!)

An octicon to accompany this context.

MemberStatusable

Interface

Entities that have members who can set status messages.

MemberStatusable est implémenté par

Champs pour MemberStatusable

NomDescription

memberStatuses (UserStatusConnection!)

Get the status messages members of this entity have set that are either public or visible only to the organization.

Arguments pour memberStatuses

  • 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 (UserStatusOrder)

    Ordering options for user statuses returned from the connection.

Pinnable

Interface

Entities that can be pinned.

Pinnable est implémenté par

Champs pour Pinnable

NomDescription

isPinned (Boolean)

Indicates whether or not this entity is currently pinned.

pinnedAt (DateTime)

Identifies the date and time when this entity was pinned.

pinnedBy (User)

The user who pinned this entity.

viewerCanPin (Boolean!)

Check if the current viewer can pin this entity.

viewerCanUnpin (Boolean!)

Check if the current viewer can unpin this entity.

ProfileOwner

Interface

Represents any entity on GitHub that has a profile page.

ProfileOwner est implémenté par

Champs pour ProfileOwner

NomDescription

anyPinnableItems (Boolean!)

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

Arguments pour anyPinnableItems

email (String)

The public profile email.

id (ID!)

The Node ID of the ProfileOwner object.

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 public profile location.

login (String!)

The username used to login.

name (String)

The public profile name.

pinnableItems (PinnableItemConnection!)

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

Arguments pour pinnableItems

  • 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 (PinnableItemConnection!)

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

Arguments pour pinnedItems

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

viewerCanChangePinnedItems (Boolean!)

Can the viewer pin repositories and gists to the profile?.

websiteUrl (URI)

The public profile website URL.

Enums

ActorType

Enum

The actor's type.

Valeurs pour ActorType.

NomDescription
TEAM

Indicates a team actor.

USER

Indicates a user actor.

ContributionLevel

Enum

Varying levels of contributions from none to many.

Valeurs pour ContributionLevel.

NomDescription
FIRST_QUARTILE

Lowest 25% of days of contributions.

FOURTH_QUARTILE

Highest 25% of days of contributions. More contributions than the third quartile.

NONE

No contributions occurred.

SECOND_QUARTILE

Second lowest 25% of days of contributions. More contributions than the first quartile.

THIRD_QUARTILE

Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile.

PinnableItemType

Enum

Represents items that can be pinned to a profile page or dashboard.

Valeurs pour PinnableItemType.

NomDescription
GIST

A gist.

ISSUE

An issue.

ORGANIZATION

An organization.

PROJECT

A project.

PULL_REQUEST

A pull request.

REPOSITORY

A repository.

TEAM

A team.

USER

A user.

SavedReplyOrderField

Enum

Properties by which saved reply connections can be ordered.

Valeurs pour SavedReplyOrderField.

NomDescription
UPDATED_AT

Order saved reply by when they were updated.

SocialAccountProvider

Enum

Software or company that hosts social media accounts.

Valeurs pour SocialAccountProvider.

NomDescription
BLUESKY

Decentralized microblogging social platform.

FACEBOOK

Social media and networking website.

GENERIC

Catch-all for social media providers that do not yet have specific handling.

HOMETOWN

Fork of Mastodon with a greater focus on local posting.

INSTAGRAM

Social media website with a focus on photo and video sharing.

LINKEDIN

Professional networking website.

MASTODON

Open-source federated microblogging service.

NPM

JavaScript package registry.

REDDIT

Social news aggregation and discussion website.

TWITCH

Live-streaming service.

TWITTER

Microblogging website.

YOUTUBE

Online video platform.

UserBlockDuration

Enum

The possible durations that a user can be blocked for.

Valeurs pour UserBlockDuration.

NomDescription
ONE_DAY

The user was blocked for 1 day.

ONE_MONTH

The user was blocked for 30 days.

ONE_WEEK

The user was blocked for 7 days.

PERMANENT

The user was blocked permanently.

THREE_DAYS

The user was blocked for 3 days.

UserStatusOrderField

Enum

Properties by which user status connections can be ordered.

Valeurs pour UserStatusOrderField.

NomDescription
UPDATED_AT

Order user statuses by when they were updated.

UserViewType

Enum

Whether a user being viewed contains public or private information.

Valeurs pour UserViewType.

NomDescription
PRIVATE

A user containing information only visible to the authenticated user.

PUBLIC

A user that is publicly visible.

Unions

Claimable

Union

An object which can have its data claimed or claim data from another.

Types possibles pour Claimable

CreatedIssueOrRestrictedContribution

Union

Represents either a issue the viewer can access or a restricted contribution.

Types possibles pour CreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

Union

Represents either a pull request the viewer can access or a restricted contribution.

Types possibles pour CreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

Union

Represents either a repository the viewer can access or a restricted contribution.

Types possibles pour CreatedRepositoryOrRestrictedContribution

PinnableItem

Union

Types that can be pinned to a profile page.

Types possibles pour PinnableItem

UserListItems

Union

Types that can be added to a user list.

Types possibles pour UserListItems

Input objects

AgentAssignmentInput

Input object

Represents configuration for assigning Copilot to an issue (public variant).

Champs d’entrée pour AgentAssignmentInput

NomDescription

baseRef (String)

The base ref/branch for the repository. Defaults to the default branch if not provided.

customAgent (String)

Custom agent for Copilot.

customInstructions (String)

Custom instructions for Copilot.

targetRepositoryId (ID)

The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided.

ChangeUserStatusInput

Input object

Autogenerated input type of ChangeUserStatus.

Champs d’entrée pour ChangeUserStatusInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

emoji (String)

The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., 😀.

expiresAt (DateTime)

If set, the user status will not be shown after this date.

limitedAvailability (Boolean)

Whether this status should indicate you are not fully available on GitHub, e.g., you are away.

message (String)

A short description of your current status.

organizationId (ID)

The ID of the organization whose members will be allowed to see the status. If omitted, the status will be publicly visible.

ContributionOrder

Input object

Ordering options for contribution connections.

Champs d’entrée pour ContributionOrder

NomDescription

direction (OrderDirection!)

The ordering direction.

CreateUserListInput

Input object

Autogenerated input type of CreateUserList.

Champs d’entrée pour CreateUserListInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A description of the list.

isPrivate (Boolean)

Whether or not the list is private.

name (String!)

The name of the new list.

DeleteUserListInput

Input object

Autogenerated input type of DeleteUserList.

Champs d’entrée pour DeleteUserListInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

listId (ID!)

The ID of the list to delete.

FollowUserInput

Input object

Autogenerated input type of FollowUser.

Champs d’entrée pour FollowUserInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

userId (ID!)

ID of the user to follow.

SavedReplyOrder

Input object

Ordering options for saved reply connections.

Champs d’entrée pour SavedReplyOrder

NomDescription

direction (OrderDirection!)

The ordering direction.

field (SavedReplyOrderField!)

The field to order saved replies by.

UnfollowUserInput

Input object

Autogenerated input type of UnfollowUser.

Champs d’entrée pour UnfollowUserInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

userId (ID!)

ID of the user to unfollow.

UpdateUserListInput

Input object

Autogenerated input type of UpdateUserList.

Champs d’entrée pour UpdateUserListInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A description of the list.

isPrivate (Boolean)

Whether or not the list is private.

listId (ID!)

The ID of the list to update.

name (String)

The name of the list.

UpdateUserListsForItemInput

Input object

Autogenerated input type of UpdateUserListsForItem.

Champs d’entrée pour UpdateUserListsForItemInput

NomDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

itemId (ID!)

The item to add to the list.

listIds ([ID!]!)

The lists to which this item should belong.

suggestedListIds ([ID!])

The suggested lists to create and add this item to.

UserStatusOrder

Input object

Ordering options for user status connections.

Champs d’entrée pour UserStatusOrder

NomDescription

direction (OrderDirection!)

The ordering direction.

field (UserStatusOrderField!)

The field to order user statuses by.