Skip to content
中文

List a connection's repositories

Code Mode: praxis.devops.connections.repositories.list

HTTP: GET /devops/v1/connections/{id}/repositories

List the repositories this connection’s GitHub installation can read, each with whether it is private, its default branch, when it last received a push, and the project of this organization already bound to it — use it to pick the repository a project is bound to. Paging is GitHub’s own: pageToken carries the next page number, so a pageSize above GitHub’s 100 is capped instead of refused, and filter and orderBy are refused because GitHub supplies neither.

Signature

praxis.devops.connections.repositories.list(args:{path:{/** e.g. "con_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The repositories on this page. */ items:Array<{/** Owner and repository name joined by a slash; this is the string a project is bound to a repository by, not a numeric id. e.g. "Deepraxis/Praxis" */ fullName:string;/** Whether the repository is private; a private repository needs the installation to be granted it. e.g. true */ private:boolean;/** The branch GitHub considers default, which is what a refresh reads when no commit is named. e.g. "main" */ defaultBranch:string;/** RFC 3339 UTC time of the last push GitHub recorded, if any; absent when the repository has never received one. e.g. "2026-11-10T08:31:00Z" */ pushedAt:string;/** The project of this organization already deploying this repository, when one is; absent means the repository is free to bind. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ boundProject?:string}>;/** Cursor carrying GitHub's next page number; an empty string means GitHub has no further page, which is the only signal the list is finished. e.g. "pt1.eyJwIjoyfQ" */ nextPageToken:string}>;

Parameters

NameInTypeRequiredDescription
idpathstringyesThe connection identifier returned by the connection list or by connections:complete, not GitHub’s installation id.
pageSizequerynumbernoHow many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
pageTokenquerystringnoThe cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.

Responses

StatusContent typesDescription
200application/jsonOne page of the repositories the installation can read.
400application/jsonINVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible.
404application/jsonCONNECTION_NOT_FOUND means no connection with that id exists in this organization, or it belongs to another organization; list the connections and use an id from that answer. A deleted connection is still readable until it is removed, so this answer means the id itself is unknown.
429application/jsonGITHUB_RATE_LIMITED means GitHub’s API rate limit is exhausted. Wait for it to reset and read the same page again; reads are safe to repeat.
500application/jsonINTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
502application/jsonGITHUB_UNAVAILABLE means GitHub could not be reached, which is transient. Retry the same page after a delay.
503application/jsonSOURCE_NOT_CONFIGURED means this deployment has no GitHub App credentials, so the installation cannot be read here. Report it rather than retrying.