Interface GitHubCustomizer
GitHubBuilder used to create the
GitHub instances.-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.kohsuke.github.GitHubBuilder builder) Customize theGitHubBuilderwith various options.default voidcustomizeApplicationClient(org.kohsuke.github.GitHubBuilder builder) Customize theGitHubBuilderwith various options specifically for the application client.
-
Method Details
-
customize
void customize(org.kohsuke.github.GitHubBuilder builder) Customize theGitHubBuilderwith various options.These customizations are applied to both application and installation clients. Known cases of customizations that may be used with installation clients but not with application clients include configuring a rate limit checker. To use a different set of customizations for the application client, implement
customizeApplicationClient(GitHubBuilder).Note that customizations that use
GitHubBuilder.withAppInstallationToken(String)andGitHubBuilder.withEndpoint(String)are eventually overridden by theGitHubService. Installation tokens are created and cached by the service.To specify a custom endpoint, use configuration properties
quarkus.github-app.instance-endpointorquarkus.github-app.rest-api-endpoint.- Parameters:
builder- to customize
-
customizeApplicationClient
default void customizeApplicationClient(org.kohsuke.github.GitHubBuilder builder) Customize theGitHubBuilderwith various options specifically for the application client. Default implementation delegates tocustomize(GitHubBuilder)for backwards compatibility.Note that customizations should never use
GitHubBuilder.withAppInstallationToken(String), because this is the application client. Customizations that useGitHubBuilder.withJwtToken(String)andGitHubBuilder.withEndpoint(String)are eventually overridden by the service.To specify a custom endpoint, use configuration properties
quarkus.github-app.instance-endpointorquarkus.github-app.rest-api-endpoint.- Parameters:
builder- to customize
-