Interface GitHubConfig
- All Known Implementing Classes:
GithubExtension
public interface GitHubConfig
Supplies the configuration
GitHub needs, without requiring a Gradle build script.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAssembles an immutableGitHubConfigby composingAuthSettings,CliSettingsandResilienceSettings, the same settings types the Gradle DSL configures. -
Method Summary
-
Method Details
-
getAccessToken
String getAccessToken()- Returns:
- the deprecated single-value token or SSH key, or null if unset. Kept for backward
compatibility; new configuration should use
getAuth().
-
getAuth
AuthSettings getAuth()- Returns:
- the structured token/SSH key configuration, preferred over
getAccessToken().
-
getCli
CliSettings getCli()- Returns:
- the settings controlling whether API calls are routed through the
ghCLI.
-
getResilience
ResilienceSettings getResilience()- Returns:
- the settings controlling fallback behavior when the GitHub API rate limit is hit.
-
builder
- Returns:
- a new
GitHubConfig.Builderfor assembling aGitHubConfigoutside a Gradle build script. Every builder method is optional;GitHubConfig.Builder.build()with none called produces a config for fully anonymous, unauthenticated access.
-