GithubRunnerSetup
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/github_runner_setup |
create |
CI setup queued |
POST |
/api/v1/organizations/{organization_id}/github_runner_setup/agent_session |
create |
Read-only connection to the setup agent |
GET |
/api/v1/organizations/{organization_id}/github_runner_setup |
load |
CI setup progress |
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:
github_runner_setup, err := client.GithubRunnerSetup(nil).Load(map[string]any{"organization_id": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(github_runner_setup)
created, err := client.GithubRunnerSetup(nil).Create(map[string]any{"organization_id": "example", "github_repository_connection_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local github_runner_setup, err = client:GithubRunnerSetup():load({ organization_id = "example", id = "example_id" })
local created, err = client:GithubRunnerSetup():create({ organization_id = "example", github_repository_connection_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$github_runner_setup = $client->GithubRunnerSetup()->load(["organization_id" => "example", "id" => "example_id"]);
$created = $client->GithubRunnerSetup()->create(["organization_id" => "example", "github_repository_connection_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
github_runner_setup = client.GithubRunnerSetup().load({"organization_id": "example", "id": "example_id"})
created = client.GithubRunnerSetup().create({ "organization_id": "example", "github_repository_connection_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
github_runner_setup = client.GithubRunnerSetup.load({ "organization_id" => "example", "id" => "example_id" })
created = client.GithubRunnerSetup.create({ "organization_id" => "example", "github_repository_connection_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const github_runner_setup = await client.GithubRunnerSetup().load({ organization_id: "example", id: "example_id" })
const created = await client.GithubRunnerSetup().create({ organization_id: "example", github_repository_connection_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
error |
one,string,null |
Yes | Error |
github_repository_connection_id |
string |
Yes | Github Repository Connection Id |
id |
string |
Yes | Id |
pull_request_url |
one,string,null |
Yes | Pull Request Url |
repository_full_name |
string |
Yes | Repository Full Name |
roder_thread_id |
one,string,null |
Yes | Roder Thread Id |
runner_labels |
array |
Yes | Runner Labels |
status |
string |
Yes | Status |
status_label |
string |
Yes | Status Label |
summary |
one,string,null |
Yes | Summary |
create
POST /api/v1/organizations/{organization_id}/github_runner_setup
Operation ID: post_api_v1_organizations_organization_id_github_runner_setup.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
github_repository_connection_id |
string |
Yes |
Responses
202: CI setup queued
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
id |
string |
Yes | |
pull_request_url |
string |
Yes | |
repository_full_name |
string |
Yes | |
roder_thread_id |
string |
Yes | |
runner_labels |
array of string |
Yes | |
status |
enum: queued, starting, running, publishing, completed, failed, ... |
Yes | |
status_label |
string |
Yes | |
summary |
string |
Yes |
POST /api/v1/organizations/{organization_id}/github_runner_setup/agent_session
Operation ID: post_api_v1_organizations_organization_id_github_runner_setup_agent_session.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes |
Responses
200: Read-only connection to the setup agent
application/json
The response is object and object.
load
GET /api/v1/organizations/{organization_id}/github_runner_setup
Operation ID: get_api_v1_organizations_organization_id_github_runner_setup.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
query |
string |
Yes |
Responses
200: CI setup progress
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
id |
string |
Yes | |
pull_request_url |
string |
Yes | |
repository_full_name |
string |
Yes | |
roder_thread_id |
string |
Yes | |
runner_labels |
array of string |
Yes | |
status |
enum: queued, starting, running, publishing, completed, failed, ... |
Yes | |
status_label |
string |
Yes | |
summary |
string |
Yes |