GitHub App Installation APIs missing
See original GitHub issueI’m using a GitHub App with two goals: get the (private) repositories in an organization, and get the (private) members in the organization.
The way I’m using this API is by creating an installation of the app on my organization. My App is set to have read access to checks, members and metadata. Then I use the private key to generate a JWT token and authenticate with the API, which gives me a GHApp object. From there I’m using listInstallations
to create a new GitHub object with the installation token.
So now I’m authenticated as my installation on the organization, which is where I expect to be. However from here I don’t see any installation-specific methods I can use with this Java API. The getRepositories
seems to use the /user/{org}/repositories
endpoint, which means I only get the public repositories on my organization, whereas I’m looking for the GET /installation/repositories endpoint. In addition to this, the listMembers
method is also only showing me the public members, but not the ones marked as private in the organization. Am I missing something? I’m new to the GitHub API so I could just be not using this API correctly.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
Hi @carterbuce,
I tried obtaining the same behaviour with:
And in all cases, I obtained the same result I mentioned in my previous comment. Here is what I propose: Let’s do a 1:1 video conf (Skype or any other tool) so that we can debug it a bit further and potentially find out what’s different between your env/app and the ones I’m using.
PS.: You can find my email on my profile and please bear in mind I’m in NZTD (GMT +13:00).
Nevermind, I understood what you meant now.
Yep, that endpoint is missing… as soon as I finish the thing I’m doing now I will take a look at it (unless someone else creates a PR before that)
Good catch @carterbuce