List all users available repos via GitHub App


#1

Hi,

I’ve created GitHub App and wanna list all repos what is available to user. Is it possible? Or should I redirect user to github app’s installation page?


#2

Hi @antonmedv,

The GET /user/repos endpoint is not yet enabled for GitHub Apps. Right now your best bet is to redirect as you suggest.

We’re in the middle of an audit of all the API endpoints, and once we have gotten through that we’ll be in a much better position to give you an idea of the timeline for getting this one enabled.


#3

Thanks for response.

GET /user/repos only for public? What about org’s repos?

Well, redirect is ok for a while. :upside_down_face:


#4

These are all the repository endpoints that you can call without being authenticated as a user.

https://developer.github.com/v3/repos/

That said, many of these are not yet enabled for GitHub Apps.

You can request public repositories for a user with https://developer.github.com/v3/repos/#list-user-repositories or for an org with https://developer.github.com/v3/repos/#list-organization-repositories, however I am pretty sure you would need to make unauthenticated requests to do so, since these are not yet enabled for GitHub Apps.

Once the endpoints are enabled for GitHub Apps I think you will be able to get all the repositories for an org or user (public and private) using the same endpoints.


#5

Hey thanks for the help with the repos


#6

Any updates on when these endpoints will be enabled on GitHub Apps? :slightly_smiling_face:

Thank you!


#7

@wtubog,

we are aiming at Q2 2018 :+1: