listRepoTasksWithHttpInfo method

Future<Response> listRepoTasksWithHttpInfo(
  1. String owner,
  2. String repo, {
  3. String? state,
  4. int? perPage,
  5. int? page,
})

List tasks linked to this repo (the "issues" surface).

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> listRepoTasksWithHttpInfo(String owner, String repo, { String? state, int? perPage, int? page, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/repos/repositories/{owner}/{repo}/tasks'
    .replaceAll('{owner}', owner)
    .replaceAll('{repo}', repo);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (state != null) {
    queryParams.addAll(_queryParams('', 'state', state));
  }
  if (perPage != null) {
    queryParams.addAll(_queryParams('', 'per_page', perPage));
  }
  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }

  const contentTypes = <String>[];


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