createRepository

Creates a new repository

Input fields

data (NewRepository!)

The parameters of the new repository

Return fields

branch (Branch)

Details of a branch

Argument Type Description
name String!

The name of the branch

branches ([String!]!)

Branches of the repository

commit (Commit)

Find a commit by revision

Argument Type Description
revision ID

The revision to query for (default: What is retruned in the defaultBranch field)

contentType (RepositoryContentType!)

Type of the repository

defaultBranch (String)

Default branch of the repository

description (String)

Description of the repository

diff ([Diff!]!)

The changes between two commits

Argument Type Description
from ID!

The base revision for the diff

paths [String!]

An optional list of paths to restrict the diff to

to ID!

The target revision for the diff

id (ID!)

ID of the repository

log ([Commit!]!)

The history (git log) of the repository starting with the most recent changes

Argument Type Description
after Time

Only show commits from after this date/time

before Time

Only show commits from before this date/time

limit Int

Maximum number of commits to list

The default value is 20.

path String

A path to a file or directory to see the history of

The default value is /.

revision String

The newest revision to show in the history

skip Int

Skip the first n commits

The default value is 0.

skipMerges Boolean

Whether or not to skip merge commits in the history

The default value is false.

memberships ([RepositoryMembership!]!)

List of the repository's memberships

Argument Type Description
limit Int

Maximum number of memberships to list

The default value is 20.

role RepositoryRole

Filter the users by the membership role

skip Int

Skip the first n memberships

The default value is 0.

name (String!)

Name of the repository

owner (OrganizationalUnit!)

Owner of the repository

permissions (RepositoryPermissions)

The current_user's permissions for this repository

readme (File)

The repository's readme file

Argument Type Description
revision ID

The repository's revision

tag (Tag)

Details of a tag

Argument Type Description
name String!

The name of the tag

tags ([String!]!)

Tags of the repository

urlMappings ([UrlMapping!]!)

List of all URL Mappings of this repository

visibility (RepositoryVisibility!)

Visibility of the repository