GithubCiRepository
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_ci_repositories |
create |
GitHub CI repository |
GET |
/api/v1/organizations/{organization_id}/github_ci_repositories |
list |
GitHub CI repositories |
GET |
/api/v1/organizations/{organization_id}/github_ci_repositories/{id} |
load |
GitHub CI repository |
PATCH |
/api/v1/organizations/{organization_id}/github_ci_repositories/{id} |
patch |
GitHub CI repository |
PUT |
/api/v1/organizations/{organization_id}/github_ci_repositories/{id} |
update |
GitHub CI repository |
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_ci_repositorys, err := client.GithubCiRepository(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(github_ci_repositorys)
github_ci_repository, err := client.GithubCiRepository(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(github_ci_repository)
created, err := client.GithubCiRepository(nil).Create(map[string]any{"organization_id": "example", "github_app_installation_id": "example", "github_repository_id": "example", "repository_name": "example", "repository_owner": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.GithubCiRepository(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "adoption_mode": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.GithubCiRepository(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "adoption_mode": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
Lua
Construct client as shown in the Lua setup, then call the operations:
local github_ci_repositorys, err = client:GithubCiRepository():list({ organization_id = "example" })
local github_ci_repository, err = client:GithubCiRepository():load({ id = "example_id", organization_id = "example" })
local created, err = client:GithubCiRepository():create({ organization_id = "example", github_app_installation_id = "example", github_repository_id = "example", repository_name = "example", repository_owner = "example" })
local updated, err = client:GithubCiRepository():update({ id = "example_id", organization_id = "example", adoption_mode = "example" })
local patched, err = client:GithubCiRepository():patch({ id = "example_id", organization_id = "example", adoption_mode = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$github_ci_repositorys = $client->GithubCiRepository()->list(["organization_id" => "example"]);
$github_ci_repository = $client->GithubCiRepository()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->GithubCiRepository()->create(["organization_id" => "example", "github_app_installation_id" => "example", "github_repository_id" => "example", "repository_name" => "example", "repository_owner" => "example"]);
$updated = $client->GithubCiRepository()->update(["id" => "example_id", "organization_id" => "example", "adoption_mode" => "example"]);
$patched = $client->GithubCiRepository()->patch(["id" => "example_id", "organization_id" => "example", "adoption_mode" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
github_ci_repositorys = client.GithubCiRepository().list({"organization_id": "example"})
github_ci_repository = client.GithubCiRepository().load({"id": "example_id", "organization_id": "example"})
created = client.GithubCiRepository().create({ "organization_id": "example", "github_app_installation_id": "example", "github_repository_id": "example", "repository_name": "example", "repository_owner": "example" })
updated = client.GithubCiRepository().update({"id": "example_id", "organization_id": "example", "adoption_mode": "example"})
patched = client.GithubCiRepository().patch({"id": "example_id", "organization_id": "example", "adoption_mode": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
github_ci_repositorys = client.GithubCiRepository.list({ "organization_id" => "example" })
github_ci_repository = client.GithubCiRepository.load({ "id" => "example_id", "organization_id" => "example" })
created = client.GithubCiRepository.create({ "organization_id" => "example", "github_app_installation_id" => "example", "github_repository_id" => "example", "repository_name" => "example", "repository_owner" => "example" })
updated = client.GithubCiRepository.update({ "id" => "example_id", "organization_id" => "example", "adoption_mode" => "example" })
patched = client.GithubCiRepository.patch({ "id" => "example_id", "organization_id" => "example", "adoption_mode" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const github_ci_repositorys = await client.GithubCiRepository().list({ organization_id: "example" })
const github_ci_repository = await client.GithubCiRepository().load({ id: "example_id", organization_id: "example" })
const created = await client.GithubCiRepository().create({ organization_id: "example", github_app_installation_id: "example", github_repository_id: "example", repository_name: "example", repository_owner: "example" })
const updated = await client.GithubCiRepository().update({ id: "example_id", organization_id: "example", adoption_mode: "example" })
const patched = await client.GithubCiRepository().patch({ id: "example_id", organization_id: "example", adoption_mode: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
adoption_mode |
string |
Yes | Adoption Mode |
check_name_prefix |
string |
Yes | Check Name Prefix |
ci_runner_pool_id |
one,string,null |
Yes | Ci Runner Pool Id |
created_at |
string |
Yes | Created At |
created_at_label |
one,string,null |
Yes | Created At Label |
default_branch |
string |
Yes | Default Branch |
github_app_installation_id |
string |
Yes | Github App Installation Id |
github_repository_id |
string |
Yes | Github Repository Id |
id |
string |
Yes | Id |
last_compatibility_status |
one,string,null |
Yes | Last Compatibility Status |
last_error_message |
one,string,null |
Yes | Last Error Message |
last_head_sha |
one,string,null |
Yes | Last Head Sha |
last_pull_request_number |
one,integer,null |
Yes | Last Pull Request Number |
last_ref |
one,string,null |
Yes | Last Ref |
last_webhook_action |
one,string,null |
Yes | Last Webhook Action |
last_webhook_at |
one,string,null |
Yes | Last Webhook At |
last_webhook_at_label |
one,string,null |
Yes | Last Webhook At Label |
last_webhook_delivery_id |
one,string,null |
Yes | Last Webhook Delivery Id |
last_webhook_event |
one,string,null |
Yes | Last Webhook Event |
metadata |
object |
Yes | Metadata |
organization_id |
string |
Yes | Organization Id |
permission_status |
string |
Yes | Permission Status |
repository_full_name |
string |
Yes | Repository Full Name |
repository_name |
string |
Yes | Repository Name |
repository_owner |
string |
Yes | Repository Owner |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
updated_at_label |
one,string,null |
Yes | Updated At Label |
webhook_delivery_count |
integer |
Yes | Webhook Delivery Count |
create
POST /api/v1/organizations/{organization_id}/github_ci_repositories
Operation ID: post_api_v1_organizations_organization_id_github_ci_repositories.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
No | |
check_name_prefix |
string |
No | |
ci_runner_pool_id |
string |
No | |
default_branch |
string |
No | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
No |
Responses
200: GitHub CI repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
Yes | |
check_name_prefix |
string |
Yes | |
ci_runner_pool_id |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
created_at_label |
string |
Yes | |
default_branch |
string |
Yes | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
id |
string |
Yes | |
last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
last_error_message |
string |
Yes | |
last_head_sha |
string |
Yes | |
last_pull_request_number |
integer |
Yes | |
last_ref |
string |
Yes | |
last_webhook_action |
string |
Yes | |
last_webhook_at |
string (date-time) |
Yes | |
last_webhook_at_label |
string |
Yes | |
last_webhook_delivery_id |
string |
Yes | |
last_webhook_event |
string |
Yes | |
metadata |
object |
Yes | |
organization_id |
string |
Yes | |
permission_status |
enum: unchecked, ok, missing |
Yes | |
repository_full_name |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
Yes | |
updated_at |
string (date-time) |
Yes | |
updated_at_label |
string |
Yes | |
webhook_delivery_count |
integer |
Yes |
201: GitHub CI repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
Yes | |
check_name_prefix |
string |
Yes | |
ci_runner_pool_id |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
created_at_label |
string |
Yes | |
default_branch |
string |
Yes | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
id |
string |
Yes | |
last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
last_error_message |
string |
Yes | |
last_head_sha |
string |
Yes | |
last_pull_request_number |
integer |
Yes | |
last_ref |
string |
Yes | |
last_webhook_action |
string |
Yes | |
last_webhook_at |
string (date-time) |
Yes | |
last_webhook_at_label |
string |
Yes | |
last_webhook_delivery_id |
string |
Yes | |
last_webhook_event |
string |
Yes | |
metadata |
object |
Yes | |
organization_id |
string |
Yes | |
permission_status |
enum: unchecked, ok, missing |
Yes | |
repository_full_name |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
Yes | |
updated_at |
string (date-time) |
Yes | |
updated_at_label |
string |
Yes | |
webhook_delivery_count |
integer |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/github_ci_repositories
Operation ID: api_v1_organization_github_ci_repositories.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
status |
query |
enum: active, paused, archived |
No | |
adoption_mode |
query |
enum: shadow, reporting, required |
No |
Responses
200: GitHub CI repositories
application/json
| Property | Type | Required | Description |
|---|---|---|---|
github_ci_repositories |
array of object |
Yes | |
github_ci_repositories[].adoption_mode |
enum: shadow, reporting, required |
Yes | |
github_ci_repositories[].check_name_prefix |
string |
Yes | |
github_ci_repositories[].ci_runner_pool_id |
string |
Yes | |
github_ci_repositories[].created_at |
string (date-time) |
Yes | |
github_ci_repositories[].created_at_label |
string |
Yes | |
github_ci_repositories[].default_branch |
string |
Yes | |
github_ci_repositories[].github_app_installation_id |
string |
Yes | |
github_ci_repositories[].github_repository_id |
string |
Yes | |
github_ci_repositories[].id |
string |
Yes | |
github_ci_repositories[].last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
github_ci_repositories[].last_error_message |
string |
Yes | |
github_ci_repositories[].last_head_sha |
string |
Yes | |
github_ci_repositories[].last_pull_request_number |
integer |
Yes | |
github_ci_repositories[].last_ref |
string |
Yes | |
github_ci_repositories[].last_webhook_action |
string |
Yes | |
github_ci_repositories[].last_webhook_at |
string (date-time) |
Yes | |
github_ci_repositories[].last_webhook_at_label |
string |
Yes | |
github_ci_repositories[].last_webhook_delivery_id |
string |
Yes | |
github_ci_repositories[].last_webhook_event |
string |
Yes | |
github_ci_repositories[].metadata |
object |
Yes | |
github_ci_repositories[].organization_id |
string |
Yes | |
github_ci_repositories[].permission_status |
enum: unchecked, ok, missing |
Yes | |
github_ci_repositories[].repository_full_name |
string |
Yes | |
github_ci_repositories[].repository_name |
string |
Yes | |
github_ci_repositories[].repository_owner |
string |
Yes | |
github_ci_repositories[].status |
enum: active, paused, archived |
Yes | |
github_ci_repositories[].updated_at |
string (date-time) |
Yes | |
github_ci_repositories[].updated_at_label |
string |
Yes | |
github_ci_repositories[].webhook_delivery_count |
integer |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/github_ci_repositories/{id}
Operation ID: api_v1_organization_github_ci_repository.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: GitHub CI repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
Yes | |
check_name_prefix |
string |
Yes | |
ci_runner_pool_id |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
created_at_label |
string |
Yes | |
default_branch |
string |
Yes | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
id |
string |
Yes | |
last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
last_error_message |
string |
Yes | |
last_head_sha |
string |
Yes | |
last_pull_request_number |
integer |
Yes | |
last_ref |
string |
Yes | |
last_webhook_action |
string |
Yes | |
last_webhook_at |
string (date-time) |
Yes | |
last_webhook_at_label |
string |
Yes | |
last_webhook_delivery_id |
string |
Yes | |
last_webhook_event |
string |
Yes | |
metadata |
object |
Yes | |
organization_id |
string |
Yes | |
permission_status |
enum: unchecked, ok, missing |
Yes | |
repository_full_name |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
Yes | |
updated_at |
string (date-time) |
Yes | |
updated_at_label |
string |
Yes | |
webhook_delivery_count |
integer |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/github_ci_repositories/{id}
Operation ID: patch_api_v1_organizations_organization_id_github_ci_repositories_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
No | |
check_name_prefix |
string |
No | |
ci_runner_pool_id |
string |
No | |
default_branch |
string |
No | |
permission_status |
enum: unchecked, ok, missing |
No | |
status |
enum: active, paused, archived |
No |
Responses
200: GitHub CI repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
Yes | |
check_name_prefix |
string |
Yes | |
ci_runner_pool_id |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
created_at_label |
string |
Yes | |
default_branch |
string |
Yes | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
id |
string |
Yes | |
last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
last_error_message |
string |
Yes | |
last_head_sha |
string |
Yes | |
last_pull_request_number |
integer |
Yes | |
last_ref |
string |
Yes | |
last_webhook_action |
string |
Yes | |
last_webhook_at |
string (date-time) |
Yes | |
last_webhook_at_label |
string |
Yes | |
last_webhook_delivery_id |
string |
Yes | |
last_webhook_event |
string |
Yes | |
metadata |
object |
Yes | |
organization_id |
string |
Yes | |
permission_status |
enum: unchecked, ok, missing |
Yes | |
repository_full_name |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
Yes | |
updated_at |
string (date-time) |
Yes | |
updated_at_label |
string |
Yes | |
webhook_delivery_count |
integer |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/github_ci_repositories/{id}
Operation ID: put_api_v1_organizations_organization_id_github_ci_repositories_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
No | |
check_name_prefix |
string |
No | |
ci_runner_pool_id |
string |
No | |
default_branch |
string |
No | |
permission_status |
enum: unchecked, ok, missing |
No | |
status |
enum: active, paused, archived |
No |
Responses
200: GitHub CI repository
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adoption_mode |
enum: shadow, reporting, required |
Yes | |
check_name_prefix |
string |
Yes | |
ci_runner_pool_id |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
created_at_label |
string |
Yes | |
default_branch |
string |
Yes | |
github_app_installation_id |
string |
Yes | |
github_repository_id |
string |
Yes | |
id |
string |
Yes | |
last_compatibility_status |
enum: executable, warning, blocked, error |
Yes | |
last_error_message |
string |
Yes | |
last_head_sha |
string |
Yes | |
last_pull_request_number |
integer |
Yes | |
last_ref |
string |
Yes | |
last_webhook_action |
string |
Yes | |
last_webhook_at |
string (date-time) |
Yes | |
last_webhook_at_label |
string |
Yes | |
last_webhook_delivery_id |
string |
Yes | |
last_webhook_event |
string |
Yes | |
metadata |
object |
Yes | |
organization_id |
string |
Yes | |
permission_status |
enum: unchecked, ok, missing |
Yes | |
repository_full_name |
string |
Yes | |
repository_name |
string |
Yes | |
repository_owner |
string |
Yes | |
status |
enum: active, paused, archived |
Yes | |
updated_at |
string (date-time) |
Yes | |
updated_at_label |
string |
Yes | |
webhook_delivery_count |
integer |
Yes |