postIntegrationsGithubSearch method

Future<GithubSearchOut?> postIntegrationsGithubSearch(
  1. GithubSearchReq githubSearchReq
)

Finds repositories on GitHub.

Finds repositories on GitHub. This reads the PUBLIC index and returns nothing an installation unlocks: it is how you find a repository to fork, not a way to see inside one. The org's own token is used only so the query is rate-limited against the installation rather than anonymously — the results are the same ones anyone would get.

Parameters:

Implementation

Future<GithubSearchOut?> postIntegrationsGithubSearch(GithubSearchReq githubSearchReq,) async {
  final response = await postIntegrationsGithubSearchWithHttpInfo(githubSearchReq,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GithubSearchOut',) as GithubSearchOut;

  }
  return null;
}