API

StatusCommit

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/commits/{commit_sha} load CI status for a commit

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_commit, err := client.StatusCommit(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(status_commit)

Lua

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

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

PHP

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

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

Python

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

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

Ruby

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

status_commit = client.StatusCommit.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_commit = await client.StatusCommit().load({ id: "example_id", organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
checks array Yes Checks
commit_sha string Yes Commit Sha
counts object Yes Counts
id string No Id
status string Yes Status
status_label string Yes Status Label
status_state string Yes Status State
status_tone string Yes Status Tone
total integer Yes Total

load

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/ci/status/commits/{commit_sha}

Operation ID: api_v1_org_repo_ci_status.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: CI status for a commit

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway