git.github.list-repositories

List the repositories an installation covers on GitHub, a page at a time

GET /git/api/github/installations/{id}/repositoriesIAM git:ListGithubInstallationsRead

Request syntax

GET /git/api/github/installations/{id}/repositories

Path parameters

  • idRequired

    string

    Constraints: uuid

Query parameters

  • pageOptional

    number

    The page, from 1

    Constraints: integer, 1-1000

    Default: 1

  • perPageOptional

    number

    Repositories per page, at most 100

    Constraints: integer, 1-100

    Default: 50

Response

200 with `totalCount`, `page`, `perPage` and that page of `repositories`, each with its mirror here. 404 when your organization has no connected installation with that id, 409 when it is suspended, 502 when GitHub could not be asked.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Fields of data

  • totalCountAlways

    number

    How many repositories the installation covers on GitHub
  • pageAlways

    number

    This page, from 1
  • perPageAlways

    number

    Repositories per page
  • repositoriesAlways

    array of object

    This page of the repositories, in the order GitHub lists them
  • repositories[].​fullNameAlways

    string

    owner/name on GitHub
  • repositories[].​privateAlways

    boolean

    Private on GitHub
  • repositories[].​archivedAlways

    boolean

    Archived on GitHub
  • repositories[].​defaultBranchAlways

    string, may be null

    Its default branch; null when GitHub did not say
  • repositories[].​htmlUrlAlways

    string

    Its page on GitHub
  • repositories[].​mirroredAsAlways

    object, may be null

    The repository here that mirrors it; null when none does
  • repositories[].​mirroredAs.​idAlways

    string

    The mirror repository here
  • repositories[].​mirroredAs.​nameAlways

    string

    Its name here
  • repositories[].​mirroredAs.​shadowCiAlways

    boolean

    Shadow CI is on for it
  • repositories[].​mirroredAs.​shadowPausedAlways

    string, may be null

    Why shadow CI is paused (a cap reached); null when it is not

Checked against the handlers: every route test validates their answers against this schema.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow git:ListGithubInstallations on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud git github list-repositories id

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_git_github_list-repositories.