postIntegrationsGithubIssuesBackfill method
Future<GithubBackfillResult?>
postIntegrationsGithubIssuesBackfill(
- GithubBackfillIn githubBackfillIn
Seeds the native todo with the EXISTING issues across the org's granted repos (default state=open); the webhook keeps them live thereafter.
Seeds the native todo with the EXISTING issues across the org's granted repos (default state=open); the webhook keeps them live thereafter. Org-scoped by the validated principal — a caller only ever backfills its OWN org. Synchronous + bounded (a total time budget and an issue cap) so it returns the counts directly; idempotent by ExtRef, so a re-run continues where a truncated pass left off and never duplicates.
Parameters:
- GithubBackfillIn githubBackfillIn (required):
Implementation
Future<GithubBackfillResult?> postIntegrationsGithubIssuesBackfill(GithubBackfillIn githubBackfillIn,) async {
final response = await postIntegrationsGithubIssuesBackfillWithHttpInfo(githubBackfillIn,);
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), 'GithubBackfillResult',) as GithubBackfillResult;
}
return null;
}