backport
Version:
A CLI tool that automates the process of backporting commits
11 lines (10 loc) • 446 B
TypeScript
import { Octokit } from '@octokit/rest';
export declare function createOctokitClient({ githubToken, githubApiBaseUrlV3, }: {
githubToken: string;
githubApiBaseUrlV3?: string;
}): InstanceType<typeof Octokit>;
/**
* Retry-wrapped Octokit request. Retries on transient server errors (5xx)
* and rate limiting (429). Does not retry client errors (4xx).
*/
export declare function retryOctokitRequest<T>(fn: () => Promise<T>): Promise<T>;