Repository

A repository contains the content for a project.

Implements

Connections

commitComments (CommitCommentConnection)
A list of commit comments associated with the repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

forks (RepositoryConnection)
A list of forked repositories.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

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

issues (IssueConnection)
A list of issues that have been opened in the repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

states

A list of states to filter the issues by.

labels

A list of label names to filter the issues by.

mentionableUsers (UserConnection)
A list of Users that can be mentioned in the context of the repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

projects (ProjectConnection)
A list of projects under the owner.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

orderBy ProjectOrder

Ordering options for projects returned from the connection

search String

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

states

A list of states to filter the projects by.

protectedBranches (ProtectedBranchConnection)
A list of protected branches that are on this repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

pullRequests (PullRequestConnection)
A list of pull requests that have been opened in the repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

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 String

The head ref name to filter the pull requests by.

baseRefName String

The base ref name to filter the pull requests by.

releases (ReleaseConnection)
List of releases which are dependent on this repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

repositoryTopics (RepositoryTopicConnection)
A list of applied repository-topic associations for this repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

stargazers (StargazerConnection)
A list of users who have starred this repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

orderBy StarOrder

Order for connection

watchers (UserConnection)
A list of users watching the repository.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

Fields

codeOfConduct (CodeOfConduct)

Returns the code of conduct for this repository

createdAt (DateTime)

Identifies the date and time when the object was created.

databaseId (Int)
Deprecation notice

Exposed database IDs will eventually be removed in favor of global Relay IDs.

Identifies the primary key from the database.

defaultBranchRef (Ref)

The Ref associated with the repository's default branch.

description (String)

The description of the repository.

descriptionHTML (HTML)

The description of the repository rendered to HTML.

diskUsage (Int)

The number of kilobytes this repository occupies on disk.

hasIssuesEnabled (Boolean)

Indicates if the repository has issues feature enabled.

hasWikiEnabled (Boolean)

Indicates if the repository has wiki feature enabled.

homepageURL (String)

The repository's URL.

isFork (Boolean)

Identifies if the repository is a fork.

isLocked (Boolean)

Indicates if the repository has been locked or not.

isMirror (Boolean)

Identifies if the repository is a mirror.

isPrivate (Boolean)

Identifies if the repository is private.

issue (Issue)

Returns a single issue from the current repository by number.

Argument Type Description
number

The number for the issue to be returned.

issueish (Issueish)

Returns a single issue-like object from the current repository by number.

Argument Type Description
number

The number for the issue to be returned.

label (Label)

Returns a single label by name

Argument Type Description
name

Label name

labels (LabelConnection)

A list of labels associated with the repository.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

languages (LanguageConnection)

A list containing a breakdown of the language composition of the repository.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

orderBy LanguageOrder

Order for connection

license (String)

The license associated with the repository

lockReason (RepositoryLockReason)

The reason the repository has been locked.

milestone (Milestone)

Returns a single milestone from the current repository by number.

Argument Type Description
number

The number for the milestone to be returned.

milestones (MilestoneConnection)

A list of milestones associated with the repository.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

mirrorURL (String)

The repository's original mirror URL.

name (String)

The name of the repository.

object (GitObject)

A Git object in the repository

Argument Type Description
oid GitObjectID

The Git object ID

expression String

A Git revision expression suitable for rev-parse

owner (RepositoryOwner)

The User owner of the repository.

parent (Repository)

The repository parent, if this is a fork.

path (URI)

The HTTP path for this repository

primaryLanguage (Language)

The primary language of the repository's code.

project (Project)

Find project by number.

Argument Type Description
number

The project number to find.

projectsPath (URI)

The HTTP path listing repository's projects

projectsUrl (URI)

The HTTP url listing repository's projects

pullRequest (PullRequest)

Returns a single pull request from the current repository by number.

Argument Type Description
number

The number for the pull request to be returned.

pushedAt (DateTime)

Identifies when the repository was last pushed to.

ref (Ref)

Fetch a given ref from the repository

Argument Type Description
qualifiedName

The ref to retrieve.Fully qualified matches are checked in order (refs/heads/master) before falling back onto checks for short name matches (master).

refs (RefConnection)

Fetch a list of refs from the repository

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

refPrefix

A ref name prefix like refs/heads/, refs/tags/, etc.

direction OrderDirection

The ordering direction.

updatedAt (DateTime)
Deprecation notice

General type updated timestamps will eventually be replaced by other field specific timestamps.

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

url (URI)

The HTTP url for this repository

viewerCanCreateProjects (Boolean)

Can the current viewer create new projects on this owner.

viewerCanSubscribe (Boolean)

Check if the viewer is able to change their subscription status for the repository.

viewerCanUpdateTopics (Boolean)

Indicates whether the viewer can update the topics of this repository.

viewerHasStarred (Boolean)

Returns a boolean indicating whether the viewing user has starred this repository.

viewerSubscription (SubscriptionState)

Identifies if the viewer is watching, not watching, or ignoring the repository.