Downgrade usage of retries.
This commit reverts:f7363549ac76b050a6078dc52cdbed
This commit is contained in:
@@ -24,7 +24,6 @@ test('it properly catches RequestError type', async () => {
|
||||
headRef: 'refs/heads/master'
|
||||
})
|
||||
} catch (error) {
|
||||
const err = error as RequestError
|
||||
expect(err.status).toBe(401)
|
||||
expect(error).toBeInstanceOf(RequestError)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import * as github from '@actions/github'
|
||||
import * as core from '@actions/core'
|
||||
import * as githubUtils from '@actions/github/lib/utils'
|
||||
import {retry} from '@octokit/plugin-retry'
|
||||
import * as retry from '@octokit/plugin-retry'
|
||||
import {RequestError} from '@octokit/request-error'
|
||||
import {Octokit} from '@octokit/rest'
|
||||
|
||||
const retryingOctokit = Octokit.plugin(retry)
|
||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry)
|
||||
const octo = new retryingOctokit(
|
||||
githubUtils.getOctokitOptions(core.getInput('repo-token', {required: true}))
|
||||
)
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as githubUtils from '@actions/github/lib/utils'
|
||||
import {Octokit} from '@octokit/core'
|
||||
import {retry} from '@octokit/plugin-retry'
|
||||
import {paginateRest} from '@octokit/plugin-paginate-rest'
|
||||
|
||||
import * as retry from '@octokit/plugin-retry'
|
||||
import {
|
||||
ChangesSchema,
|
||||
ComparisonResponse,
|
||||
ComparisonResponseSchema
|
||||
} from './schemas'
|
||||
|
||||
const retryingOctokit = Octokit.plugin(retry, paginateRest)
|
||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry)
|
||||
const SnapshotWarningsHeader = 'x-github-dependency-graph-snapshot-warnings'
|
||||
const octo = new retryingOctokit(
|
||||
githubUtils.getOctokitOptions(core.getInput('repo-token', {required: true}))
|
||||
|
||||
Reference in New Issue
Block a user