postIntegrationsGithubForkWithHttpInfo method

Future<Response> postIntegrationsGithubForkWithHttpInfo(
  1. GithubForkReq githubForkReq
)

Forks a granted repository.

Forks a granted repository. GitHub's fork is ASYNCHRONOUS: it answers 202 with the target repo and populates it in the background, and it answers the same 202 when the fork already exists. So this reports what GitHub said rather than waiting — a call that blocked until the clone finished would time out on a large repository and tell the caller nothing it does not already know.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postIntegrationsGithubForkWithHttpInfo(GithubForkReq githubForkReq,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/github/fork';

  // ignore: prefer_final_locals
  Object? postBody = githubForkReq;

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

  const contentTypes = <String>['application/json'];


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