feat: Add GitHub Enterprise App installation repository management APIs#3831
feat: Add GitHub Enterprise App installation repository management APIs#3831gmlewis merged 7 commits intogoogle:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3831 +/- ##
==========================================
+ Coverage 92.42% 92.44% +0.02%
==========================================
Files 197 198 +1
Lines 14167 14210 +43
==========================================
+ Hits 13094 13137 +43
Misses 884 884
Partials 189 189 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @nithish-95!
One minor tweak, please, then we should be ready to merge after a second LGTM+Approval from any other contributor to this repo.
cc: @stevehipwell - @alexandear - @zyfy29
915cfbf to
da913d0
Compare
0173838 to
1a69bbf
Compare
|
I've rebased on master to use the existing AccessibleRepository struct and removed the duplicate definition from this PR. I feel sorry for the way I use Git!! |
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @nithish-95!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra
stevehipwell
left a comment
There was a problem hiding this comment.
I've added some naming suggestions, happy to discuss the "why".
@stevehipwell Yes, Please! |
|
@nithish-95 which parts of the review did you want to discuss? |
Hi @stevehipwell , I'm making those updates. Could you briefly explain the rationale behind these specific suggestions? I'm particularly interested in the conventions for type scoping for Enterprise prefixing and the preferred usage of AppInstallation vs Installation. |
- Use EnterpriseService instead of creating new service - Add EnterpriseInstallationRepositoriesOptions for consistency - Update method signatures to Required
…orOrgInstallation` to return a slice of it
…tead of ListRepositories and adjust its test expectations.
1a69bbf to
9b5e78a
Compare
|
@nithish-95 check out the naming sections in the Google Go Style guide and the Google Go Style Decisions. |
…se app repository functions and tests
Not-Dhananjay-Mishra
left a comment
There was a problem hiding this comment.
Thanks @nithish-95
LGTM.
|
Thank you, @Not-Dhananjay-Mishra! @stevehipwell - have your comments been addressed to your satisfaction and is this ready to merge? |
|
Thank you, @stevehipwell! |
Description
Implements enterprise GitHub App installation repository management endpoints for issue #3829.
This PR adds the following endpoints:
Changes
ListRepositoriesForOrgInstallationmethod to list repositories accessible to an app installationToggleInstallationRepositoriesmethod to update repository selectionAddRepositoriesToInstallationmethod to add repositories to an installationRemoveRepositoriesFromInstallationmethod to remove repositories from an installationTesting
cc @gmlewis @Not-Dhananjay-Mishra