-
Notifications
You must be signed in to change notification settings - Fork 97
feat: add organisation app installation functionality #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #142 +/- ##
============================================
+ Coverage 75.10% 75.61% +0.51%
- Complexity 275 279 +4
============================================
Files 42 42
Lines 960 968 +8
Branches 42 42
============================================
+ Hits 721 732 +11
+ Misses 213 211 -2
+ Partials 26 25 -1
|
| * @return a list of Installation | ||
| */ | ||
| public CompletableFuture<Installation> getInstallation() { | ||
| return maybeRepo.map(repo-> github.request( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: you could extract the inner logic to another method e.g getRepoInstallation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to this
src/main/java/com/spotify/github/v3/clients/GithubAppClient.java
Outdated
Show resolved
Hide resolved
src/main/java/com/spotify/github/v3/clients/GithubAppClient.java
Outdated
Show resolved
Hide resolved
src/main/java/com/spotify/github/v3/clients/GithubAppClient.java
Outdated
Show resolved
Hide resolved
annelled
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
What does this PR do?
Adds the ability to instantiate the GitHubAppClient from the OrganisationClient
Updates the getInstallation() function to support getting the installations at an organisation level
How to test?
Unit tests have been updated to reflect these changes