Skip to content

feat(github): add GET /orgs/:org/repos - #232

Closed
0xChathurinda wants to merge 1 commit into
vercel-labs:mainfrom
0xChathurinda:feat/github-list-org-repos
Closed

feat(github): add GET /orgs/:org/repos#232
0xChathurinda wants to merge 1 commit into
vercel-labs:mainfrom
0xChathurinda:feat/github-list-org-repos

Conversation

@0xChathurinda

Copy link
Copy Markdown

Summary

Adds GitHub's list organization repositories endpoint, GET /orgs/:org/repos, which was missing (repositories were reachable one by one and through the user listings, but not through the endpoint clients use to browse an organization).

  • Lists the repositories the caller may see: public ones for anyone; private ones for organization members, collaborators and App installations with access, using the existing canAccessRepo rules.
  • Honours type (all, public, private, forks, sources, member), sort (created, updated, pushed, full_name) and direction, with GitHub's defaults (created descending; full_name ascending), and paginates with Link headers via the shared helpers. sortRepos from the user listing is reused.

Testing

src/__tests__/org-repos.test.ts covers anonymous vs member visibility, the type filter and its 422, pagination, and the 404 for an unknown org. pnpm --filter @emulators/github test, type-check and lint pass. Package README, root README and the web docs page list the route.

The organization repository listing was missing: an org's repositories were
reachable one by one, and through the user listings, but not through the
endpoint clients use to browse an org. It now lists the repositories the
caller may see (public ones for anyone; private ones for members,
collaborators and installations with access), honours `type` (all, public,
private, forks, sources, member), `sort` and `direction` with GitHub's
defaults, and paginates with Link headers.
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

@0xChathurinda is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@0xChathurinda
0xChathurinda deleted the feat/github-list-org-repos branch September 7, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant