Skip to content

Conversation

@ebk45
Copy link
Contributor

@ebk45 ebk45 commented Jul 31, 2023

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

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #142 (aef0503) into master (844c59c) will increase coverage by 0.51%.
The diff coverage is 100.00%.

@@             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     
Files Changed Coverage Δ
...com/spotify/github/v3/clients/GithubAppClient.java 91.66% <100.00%> (+16.66%) ⬆️
.../spotify/github/v3/clients/OrganisationClient.java 85.71% <100.00%> (ø)

... and 1 file with indirect coverage changes

@ebk45 ebk45 requested a review from a team July 31, 2023 16:19
* @return a list of Installation
*/
public CompletableFuture<Installation> getInstallation() {
return maybeRepo.map(repo-> github.request(
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this

annelled
annelled previously approved these changes Jul 31, 2023
Copy link
Contributor

@annelled annelled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@ebk45 ebk45 merged commit 7b503c6 into master Aug 1, 2023
@ebk45 ebk45 deleted the feat/org-apps branch August 1, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants