API

RepositoryImportSessionRepository

Operations

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

Method Route SDK operation Returns
GET /api/v1/repository_import_sessions/{id}/repositories list Session-scoped GitHub App repository inventory

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:

repository_import_session_repositorys, err := client.RepositoryImportSessionRepository(nil).List(map[string]any{"repository_import_session_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(repository_import_session_repositorys)

Lua

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

local repository_import_session_repositorys, err = client:RepositoryImportSessionRepository():list({ repository_import_session_id = "example" })

PHP

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

$repository_import_session_repositorys = $client->RepositoryImportSessionRepository()->list(["repository_import_session_id" => "example"]);

Python

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

repository_import_session_repositorys = client.RepositoryImportSessionRepository().list({"repository_import_session_id": "example"})

Ruby

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

repository_import_session_repositorys = client.RepositoryImportSessionRepository.list({ "repository_import_session_id" => "example" })

TypeScript

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

const repository_import_session_repositorys = await client.RepositoryImportSessionRepository().list({ repository_import_session_id: "example" })

Fields

Field Type Required Description
default_branch one,string,null Yes Default Branch
full_name string Yes Full Name
name string Yes Name
owner string Yes Owner
private boolean Yes Private
reason one,string,null No Reason
selectable boolean Yes Selectable
status string Yes Status
visibility string Yes Visibility

list

GET /api/v1/repository_import_sessions/{id}/repositories

Operation ID: repositories_api_v1_repository_import_session.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes
q query string No

Responses

200: Session-scoped GitHub App repository inventory

application/json

Property Type Required Description
action_required enum: github_app_installation No
authorization_endpoint string No
limit integer Yes
query string No
repositories array of object Yes
repositories[].default_branch string Yes
repositories[].full_name string Yes
repositories[].name string Yes
repositories[].owner string Yes
repositories[].private boolean Yes
repositories[].reason string No
repositories[].selectable boolean Yes
repositories[].status enum: eligible, already_imported, selected, queued, running, succeeded, ... Yes
repositories[].visibility string Yes
truncated boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway