postIntegrationsGithubReposImportWithHttpInfo method
Imports the selected (or all) granted repos into git.hanzo.ai.
Imports the selected (or all) granted repos into git.hanzo.ai. The selection is intersected with the installation's GRANTED set, so a client can never import a repo the App was not granted (org isolation + a grant check). The import runs in a bounded background worker (don't block the request), so the answer is 202 Accepted; poll GET /v1/integrations/github/repos for the per-repo status to flip to imported.
Note: This method returns the HTTP Response.
Parameters:
- GithubImportIn githubImportIn (required):
Implementation
Future<Response> postIntegrationsGithubReposImportWithHttpInfo(GithubImportIn githubImportIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/integrations/github/repos/import';
// ignore: prefer_final_locals
Object? postBody = githubImportIn;
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,
);
}