You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple API calls are required to list all organization repositories.
Get all organizations associated with user
For each organizaion, get all repositories with write privileges
This might take awhile to enumerate if the user has many organizations -- which was why I decided to load only personal repos and the list of organizations first. Organization's repos are fetched only when requested.
Caching could also help to reduce the number of API calls made to GitHub.
With the new Organization Permissions API (described below), this will include repositories owned by organizations which the user can access. If you provide the custom media type (described below), you won’t need to use other APIs to list the authenticated user’s organization-owned repositories.
I was wondering if this behavior is also possible when fetching repos for arbitrary user. I tried the custom Access header they guide to, but no luck. I think the migration period has already ended anywsy so no need for custom header
GitHub API returns only personal repositories. It should return organization repositories too nowadays.
The text was updated successfully, but these errors were encountered: