OBJECT
Repository
A repository contains the content for a project.
link GraphQL Schema definition
- type Repository implements Node, ProjectOwner, Subscribable, UniformResourceLocatable, RepositoryInfo {
- # A list of commit comments associated with the repository.
- #
- # 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): CommitCommentConnection! ( :
- # 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 Ref associated with the repository's default branch.
- Ref :
- # The description of the repository.
- String :
- # The description of the repository rendered to HTML.
- HTML! :
- # The number of kilobytes this repository occupies on disk.
- Int! :
- # A list of forked repositories.
- #
- # 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
- # 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, :
- RepositoryOrder, :
- RepositoryAffiliation], : [
- Boolean :
- ): RepositoryConnection!
- # Indicates if the repository has issues feature enabled.
- Boolean! :
- # Indicates if the repository has wiki feature enabled.
- Boolean! :
- # The repository's URL.
- String :
- ID! :
- # Identifies if the repository is a fork.
- Boolean! :
- # Indicates if the repository has been locked or not.
- Boolean! :
- # Identifies if the repository is a mirror.
- Boolean! :
- # Identifies if the repository is private.
- Boolean! :
- # Returns a single issue from the current repository by number.
- #
- # Arguments
- # number: The number for the issue to be returned.
- Int!): Issue ( :
- # Returns a single issue-like object from the current repository by number.
- #
- # Arguments
- # number: The number for the issue to be returned.
- Int!): Issueish ( :
- # A list of issues that have been opened in the repository.
- #
- # 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 issues by.
- # labels: A list of label names to filter the issues by.
- (
- Int, :
- String, :
- Int, :
- String, :
- IssueState!], : [
- String!] : [
- ): IssueConnection!
- # Returns a single label by name
- #
- # Arguments
- # name: Label name
- String!): Label ( :
- # A list of labels associated with the repository.
- #
- # 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): LabelConnection ( :
- # A list containing a breakdown of the language composition of the repository.
- #
- # 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.
- # orderBy: Order for connection
- (
- Int, :
- String, :
- Int, :
- String, :
- LanguageOrder :
- ): LanguageConnection
- # The license associated with the repository
- String :
- # The reason the repository has been locked.
- RepositoryLockReason :
- # A list of Users that can be mentioned in the context of the repository.
- #
- # 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): UserConnection! ( :
- # Returns a single milestone from the current repository by number.
- #
- # Arguments
- # number: The number for the milestone to be returned.
- Int!): Milestone ( :
- # A list of milestones associated with the repository.
- #
- # 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): MilestoneConnection ( :
- # The repository's original mirror URL.
- String :
- # The name of the repository.
- String! :
- # A Git object in the repository
- #
- # Arguments
- # oid: The Git object ID
- # expression: A Git revision expression suitable for rev-parse
- GitObjectID, : String): GitObject ( :
- # The User owner of the repository.
- RepositoryOwner! :
- # The repository parent, if this is a fork.
- Repository :
- # The HTTP path for this repository
- URI! :
- # The primary language of the repository's code.
- Language :
- # Find project by number.
- #
- # Arguments
- # number: The project number to find.
- Int!): Project ( :
- # A list of projects under the owner.
- #
- # 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.
- # orderBy: Ordering options for projects returned from the
- # connection
- # search: Query to search projects by, currently only searching
- # by name.
- # states: A list of states to filter the projects by.
- (
- Int, :
- String, :
- Int, :
- String, :
- ProjectOrder, :
- String, :
- ProjectState!] : [
- ): ProjectConnection!
- # The HTTP path listing repository's projects
- URI! :
- # The HTTP url listing repository's projects
- URI! :
- # A list of protected branches that are on this repository.
- #
- # 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 :
- ): ProtectedBranchConnection!
- # Returns a single pull request from the current repository by number.
- #
- # Arguments
- # number: The number for the pull request to be returned.
- Int!): PullRequest ( :
- # A list of pull requests that have been opened in the repository.
- #
- # 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!
- # Identifies when the repository was last pushed to.
- DateTime :
- # Fetch a given ref from the repository
- #
- # Arguments
- # 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`).
- String!): Ref ( :
- # Fetch a list of refs from the repository
- #
- # 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.
- # refPrefix: A ref name prefix like `refs/heads/`, `refs/tags/`,
- # etc.
- # direction: The ordering direction.
- (
- Int, :
- String, :
- Int, :
- String, :
- String!, :
- OrderDirection :
- ): RefConnection
- # List of releases which are dependent on this repository.
- #
- # 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): ReleaseConnection! ( :
- # A list of users who have starred this repository.
- #
- # 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.
- # orderBy: Order for connection
- (
- Int, :
- String, :
- Int, :
- String, :
- StarOrder :
- ): StargazerConnection!
- # Identifies the date and time when the object was last updated.
- DateTime! :
- # The HTTP url for this repository
- URI! :
- # Can the current viewer create new projects on this owner.
- Boolean! :
- # Check if the viewer is able to change their subscription status for the
- # repository.
- Boolean! :
- # Indicates whether the viewer can update the topics of this repository.
- Boolean! :
- # Returns a boolean indicating whether the viewing user has starred this
- # repository.
- Boolean! :
- # Identifies if the viewer is watching, not watching, or ignoring the repository.
- SubscriptionState! :
- # A list of users watching the repository.
- #
- # 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): UserConnection! ( :
- }
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.
- BlobRepresents a Git blob.
- ClosedEventRepresents a 'closed' event on a given issue or pull request.
- CommitRepresents a Git commit.
- 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.
- GitObjectRepresents a Git object.
- 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.
- IssueAn Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
- IssueCommentRepresents a comment on an Issue.
- IssueEventRepresents an issue event.
- IssueishShared features of Issues and Pull Requests.
- LabelA label for categorizing Issues or Milestones with a given Repository.
- 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.
- OrganizationAn account on GitHub, with one or more owners, that has repositories, members and teams.
- ProtectedBranchA repository protected branch.
- PullRequestA repository pull request.
- PullRequestReviewA review object for a given pull request.
- PullRequestReviewCommentA review comment associated with a given repository pull request.
- QueryThe query root of GitHub's GraphQL interface.
- ReactableRepresents a subject that can be reacted on.
- RefRepresents a Git reference.
- ReferencedEventRepresents a 'referenced' event on a given issue or pull request.
- 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.
- RepositoryA repository contains the content for a project.
- RepositoryConnectionA list of repositories owned by the subject.
- RepositoryEdgeAn edge in a connection.
- RepositoryNodeRepresents a object that belongs to a repository.
- RepositoryOwnerRepresents an owner of a Repository.
- ReviewDismissedEventRepresents a 'review_dismissed' event on a given issue or 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.
- StarredRepositoryConnectionThe connection type for Repository.
- StarredRepositoryEdgeRepresents a starred repository.
- SubscribedEventRepresents a 'subscribed' event on a given issue or pull request.
- TagRepresents a Git tag.
- TreeRepresents a Git tree.
- TreeEntryRepresents a Git tree entry.
- UnassignedEventRepresents a 'unassigned' event on a given issue or pull request.
- 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.
- UserA user is an individual's account on GitHub that owns repositories and can make new content.