Skip to content

Repository

No description

type Repository {
id: Int!
rid: ID!
created: Time!
updated: Time!
owner: Entity!
name: String!
description: String
visibility: Visibility!
readme: String
access: AccessMode!
acls(
cursor: Cursor
): ACLCursor!
deployKeys(
cursor: Cursor
): SSHKeyCursor!
codeSearch(
cursor: Cursor
query: String!
): CodeSearchCursor!
objects(
ids: [String!]
): [Object]!
object(
id: String!
): Object
references(
cursor: Cursor
): ReferenceCursor!
reference(
name: String!
): Reference
HEAD: Reference
log(
cursor: Cursor
from: String
): CommitCursor!
path(
revspec: String
path: String!
): TreeEntry
paths(
revspec: String
paths: [String!]
): [TreeEntry]
revparse_single(
revspec: String!
): Commit
repoPath: String!
}

The repository’s custom README, if set.

NOTICE: This returns unsanitized HTML. It is the client’s responsibility to sanitize this for display on the web, if so desired.

The access that applies to this user for this repository

Searches through the source code of this repository.

Returns any number of git objects by their IDs.

Returns a specific git object by its ID.

Enumerates references on this repository.

Returns a reference by its fully qualified name, e.g. refs/heads/master.

The HEAD reference for this repository (equivalent to the default branch)

Returns a list of comments sorted by committer time (similar to git log’s default ordering).

If from is specified, it is interpreted as a revspec to start logging from. A clever reader may notice that using commits[-1].from + “^” as the from parameter is equivalent to passing the cursor to the next call.

Returns a tree entry for a given path, at the given revspec.

Returns tree entres for a collection of paths, at the given revspec.

Returns the commit for a given revspec.

createRepository mutation ● deleteRepository mutation ● repository query ● repositoryByDiskPath query ● updateRepository mutation

ACL object ● Entity interface ● FileMatch object ● GitEvent object ● Redirect object ● RepositoryCursor object ● RepositoryEvent object ● SSHKey object ● User object