postIntegrationsGithubReposByRepoPagesBuildsWithHttpInfo method

Future<Response> postIntegrationsGithubReposByRepoPagesBuildsWithHttpInfo(
  1. String repo
)

Requests a Pages rebuild and returns the queued build's status.

Requests a Pages rebuild and returns the queued build's status. The build is queued AT GITHUB, not completed here, so the answer is 202 Accepted and its status is the one GitHub reported at queue time. 404 when the repository has no Pages site, or when the org's installation was not granted it.

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> postIntegrationsGithubReposByRepoPagesBuildsWithHttpInfo(String repo,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/github/repos/{repo}/pages/builds'
    .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,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}