API

GithubAppImportableRepository

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/github_app/importable_repositories list Importable GitHub repositories grouped by installation account

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_app_importable_repositorys, err := client.GithubAppImportableRepository(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_app_importable_repositorys)

Lua

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

local github_app_importable_repositorys, err = client:GithubAppImportableRepository():list()

PHP

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

$github_app_importable_repositorys = $client->GithubAppImportableRepository()->list();

Python

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

github_app_importable_repositorys = client.GithubAppImportableRepository().list()

Ruby

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

github_app_importable_repositorys = client.GithubAppImportableRepository.list()

TypeScript

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

const github_app_importable_repositorys = await client.GithubAppImportableRepository().list()

Fields

Field Type Required Description
account_login string Yes Account Login
github_app_installation_id string Yes Github App Installation Id
next_page one,integer,null Yes Next GitHub page for this installation
repositories array Yes Repositories

list

GET /api/v1/github_app/importable_repositories

Operation ID: api_v1_github_app_importable_repositories.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
github_app_installation_id query string No When set with page, returns one installation page for client-side streaming.
page query integer No GitHub installation-repositories page (1-based). Defaults to 1.

Responses

200: Importable GitHub repositories grouped by installation account

application/json

Property Type Required Description
accounts array of object Yes
accounts[].account_login string Yes
accounts[].github_app_installation_id string Yes
accounts[].next_page integer Yes Next GitHub page for this installation
accounts[].repositories array of object Yes
accounts[].repositories[].already_imported boolean Yes
accounts[].repositories[].default_branch string Yes
accounts[].repositories[].empty boolean Yes
accounts[].repositories[].full_name string Yes
accounts[].repositories[].html_url string Yes
accounts[].repositories[].name string Yes
accounts[].repositories[].owner string Yes
accounts[].repositories[].private boolean Yes
accounts[].repositories[].updated_at string Yes
accounts[].repositories[].visibility string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway