-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Connector for better GitHubAppCredentials behavior
GitHubAppCredentials could not use the existing Connector.connect() and so created its own GithubBuilder. However, that means that is missing a number of standard settings provided by Connector.connect(), including okhttp, Jenkins proxy settings, and rate limit handling. This change refactors Connector to add an internal createGitHubBuilder() method that returns a GitHubBuilder with those features configured. For simplicity, The returned GitHubBuilder is not cached and also does not cache responses. If there turns out to be a need for it, that behavior can be added later.
- Loading branch information
1 parent
d8b2c8a
commit 342952d
Showing
2 changed files
with
74 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JENKINS-62655