API

GithubOnboardingBranch

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/{organization_id}/github_onboarding/branches list GitHub repository branches

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_onboarding_branchs, err := client.GithubOnboardingBranch(nil).List(map[string]any{"organization_id": "example", "github_app_installation_id": "example", "name": "example", "owner": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_onboarding_branchs)

Lua

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

local github_onboarding_branchs, err = client:GithubOnboardingBranch():list({ organization_id = "example", github_app_installation_id = "example", name = "example", owner = "example" })

PHP

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

$github_onboarding_branchs = $client->GithubOnboardingBranch()->list(["organization_id" => "example", "github_app_installation_id" => "example", "name" => "example", "owner" => "example"]);

Python

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

github_onboarding_branchs = client.GithubOnboardingBranch().list({"organization_id": "example", "github_app_installation_id": "example", "name": "example", "owner": "example"})

Ruby

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

github_onboarding_branchs = client.GithubOnboardingBranch.list({ "organization_id" => "example", "github_app_installation_id" => "example", "name" => "example", "owner" => "example" })

TypeScript

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

const github_onboarding_branchs = await client.GithubOnboardingBranch().list({ organization_id: "example", github_app_installation_id: "example", name: "example", owner: "example" })

Fields

Field Type Required Description
branches array Yes Branches

list

GET /api/v1/organizations/{organization_id}/github_onboarding/branches

Operation ID: api_v1_organization_github_onboarding_branches.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
github_app_installation_id query string Yes
owner query string Yes
name query string Yes

Responses

200: GitHub repository branches

application/json

Property Type Required Description
branches array of string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway