mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
feat: retry 403
This commit is contained in:
parent
ce53a56b63
commit
83dbed188f
4 changed files with 37 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
import * as core from '@actions/core'
|
||||
import {Inputs} from './create-pull-request'
|
||||
import {Octokit, OctokitOptions} from './octokit-client'
|
||||
import {Octokit, OctokitOptions, retryOptions} from './octokit-client'
|
||||
|
||||
const ERROR_PR_REVIEW_FROM_AUTHOR =
|
||||
'Review cannot be requested from pull request author'
|
||||
|
@ -20,7 +20,9 @@ export class GitHubHelper {
|
|||
private octokit: InstanceType<typeof Octokit>
|
||||
|
||||
constructor(token: string) {
|
||||
const options: OctokitOptions = {}
|
||||
const options: OctokitOptions = {
|
||||
retry: retryOptions
|
||||
}
|
||||
if (token) {
|
||||
options.auth = `${token}`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue