Skip to main content
PATCH
Change a repository's CI cluster

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

repository_id
string<uuid>
required

The connected repository.

Body

application/json

Change a connected repository's CI cluster override, its Workspaces-only mode, or both. At least one member is named; a member left out is left unchanged. A body naming neither answers 422 with cluster_id missing.

cluster_id
string<uuid> | null

A cluster of this organisation whose agent runs pipeline steps, or null to clear the override so the repository's runs follow the organisation's CI settings (and its CI pool) again.

workspaces_only
boolean

true connects the repository for Ankra Workspaces only (no pipeline runs, no commit statuses or check runs, no definition of record); false makes it an ordinary pipeline repository again. Turning it on while a run is queued or running answers 409.

Response

The repository as stored.

A repository connected to Ankra Pipelines.

id
string<uuid>
required
organisation_id
string<uuid>
required
provider
enum<string>
required
Available options:
github,
gitlab,
bitbucket_cloud
owner
string
required
name
string
required
credential_name
string
required
default_branch
string
required
application_id
string | null
required

The linked application; null when none.

cluster_id
string | null
required

The repository's CI cluster override; null when its runs follow the organisation's CI settings.

created_at
string<date-time>
required
updated_at
string<date-time>
required
last_trigger
object | null
required

What the trigger last decided for this repository; null when it has never decided anything.

merge_train_enabled
boolean

Whether the repository's merge train is on (GET .../merge-train answers the same value with the queue).

merge_train_max_cars
integer

How many pull requests the repository's merge train tests at once.

Required range: 1 <= x <= 8
workspaces_only
boolean

The repository is connected for Ankra Workspaces only: no push, pull request, tag, schedule, merge train or manual dispatch starts a pipeline run for it, no commit status or check run is posted for it, and no pipeline definition is recorded for it. Workspaces (up, runs, the clone credential, workspace profiles) work as for any connected repository.