feat: retry github api requests

This commit is contained in:
Peter Evans 2021-05-31 09:37:41 +09:00
parent 093c191148
commit 29708c335a
4 changed files with 1632 additions and 1 deletions

View file

@ -1,6 +1,7 @@
import {Octokit as Core} from '@octokit/core'
import {paginateRest} from '@octokit/plugin-paginate-rest'
import {restEndpointMethods} from '@octokit/plugin-rest-endpoint-methods'
import {retry} from '@octokit/plugin-retry'
import {HttpsProxyAgent} from 'https-proxy-agent'
export {RestEndpointMethodTypes} from '@octokit/plugin-rest-endpoint-methods'
export {OctokitOptions} from '@octokit/core/dist-types/types'
@ -8,6 +9,7 @@ export {OctokitOptions} from '@octokit/core/dist-types/types'
export const Octokit = Core.plugin(
paginateRest,
restEndpointMethods,
retry,
autoProxyAgent
)