public GitHubClient withScopeForInstallationId()

in src/main/java/com/spotify/github/v3/clients/GitHubClient.java [360:372]


  public GitHubClient withScopeForInstallationId(final int installationId) {
    if (Optional.ofNullable(privateKey).isEmpty()) {
      throw new RuntimeException("Installation ID scoped client needs a private key");
    }
    return new GitHubClient(
        client,
        baseUrl,
        graphqlUrl.orElse(null),
        null,
        privateKey,
        appId,
        installationId);
  }