Skip to content

listGithubRepos

listGithubRepos(runner?): Promise<{ login: string | null; repos: GithubRepo[]; }>

Defined in: src/repos.ts:292

Enumerate every GitHub repo the authenticated user can clone: their own repos plus any they reach as a collaborator or org/team member (affiliation=owner,collaborator,organization_member). Paginates so users with more than a page of repos get the full set, sorted most-recently-pushed first.

Returns { login, repos }; login (the authenticated user, best-effort) lets the caller separate the user’s own account from the teams they belong to. Throws when the repo listing itself fails (gh missing / not authed) so the route can degrade to the URL-only clone path.

GhOutRunner

Promise<{ login: string | null; repos: GithubRepo[]; }>