feat(github): add GET /orgs/:org/repos - #232
Closed
0xChathurinda wants to merge 1 commit into
Closed
Conversation
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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).canAccessReporules.type(all,public,private,forks,sources,member),sort(created,updated,pushed,full_name) anddirection, with GitHub's defaults (createddescending;full_nameascending), and paginates withLinkheaders via the shared helpers.sortReposfrom the user listing is reused.Testing
src/__tests__/org-repos.test.tscovers anonymous vs member visibility, thetypefilter and its 422, pagination, and the 404 for an unknown org.pnpm --filter @emulators/github test,type-checkandlintpass. Package README, root README and the web docs page list the route.