getIntegrationsGithubReposByRepoPagesWithHttpInfo method

Future<Response> getIntegrationsGithubReposByRepoPagesWithHttpInfo(
  1. String repo
)

Returns the repo's Pages status, live URL, custom domain and build source.

Returns the repo's Pages status, live URL, custom domain and build source. The repo is resolved against the org installation's GRANTED set, so a caller can never address a repo the App was not granted; 404 when the repo has no Pages site.

Note: This method returns the HTTP Response.

Parameters:

  • String repo (required): Repo is the repository's short name within the org's installation, with no owner prefix (the owner is server-derived from the grant). A trailing ".git" is stripped.

Implementation

Future<Response> getIntegrationsGithubReposByRepoPagesWithHttpInfo(String repo,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/github/repos/{repo}/pages'
    .replaceAll('{repo}', repo);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}