StatusPatchset
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/patchsets/{id} |
load |
CI status for a patchset |
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_patchset, err := client.StatusPatchset(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(status_patchset)
Lua
Construct client as shown in the Lua setup, then call the operations:
local status_patchset, err = client:StatusPatchset():load({ id = "example_id", organization_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$status_patchset = $client->StatusPatchset()->load(["id" => "example_id", "organization_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
status_patchset = client.StatusPatchset().load({"id": "example_id", "organization_id": "example", "repo_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
status_patchset = client.StatusPatchset.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_patchset = await client.StatusPatchset().load({ id: "example_id", organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
checks |
array |
Yes | Checks |
checks_status |
one,string,null |
Yes | Checks Status |
commit_sha |
one,string,null |
Yes | Commit Sha |
counts |
object |
Yes | Counts |
id |
string |
No | Id |
patchset_id |
string |
Yes | Patchset 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/patchsets/{id}
Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_ci_status_patchsets_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 patchset
application/json
The response is object and object.