API

StatusChange

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/ci/status/changes/{id} load CI status for a change

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

status_change, err := client.StatusChange(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(status_change)

Lua

Construct client as shown in the Lua setup, then call the operations:

local status_change, err = client:StatusChange():load({ id = "example_id", organization_id = "example", repo_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$status_change = $client->StatusChange()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

status_change = client.StatusChange().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

status_change = client.StatusChange.load({ "id" => "example_id", "organization_id" => "example", "repo_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const status_change = await client.StatusChange().load({ id: "example_id", organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
change_id string Yes Change Id
id string No Id
patchsets array Yes Patchsets
status string Yes Status
status_label string Yes Status Label
status_state string Yes Status State
status_tone string Yes Status Tone

load

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/ci/status/changes/{id}

Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_ci_status_changes_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Responses

200: CI status for a change

application/json

Property Type Required Description
change_id string Yes
patchsets array of object and object Yes
status enum: absent, queued, running, succeeded, failed, canceled Yes
status_label string Yes
status_state string Yes
status_tone string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway