mirror of
https://github.com/actions/github-script.git
synced 2026-04-07 22:50:04 +00:00
PR feedback
This commit is contained in:
parent
3cca041b86
commit
3faaff918c
6 changed files with 68 additions and 61 deletions
|
|
@ -30,13 +30,10 @@ async function main(): Promise<void> {
|
|||
const userAgent = core.getInput('user-agent')
|
||||
const previews = core.getInput('previews')
|
||||
const retries = parseInt(core.getInput('retries'))
|
||||
const retryAfter = parseInt(core.getInput('retry-after'))
|
||||
const doNotRetry = parseNumberArray(core.getInput('do-not-retry'))
|
||||
const [retryOpts, requestOpts] = getRetryOptions(
|
||||
retries,
|
||||
retryAfter,
|
||||
doNotRetry
|
||||
const exemptStatusCodes = parseNumberArray(
|
||||
core.getInput('retry-exempt-status-codes')
|
||||
)
|
||||
const [retryOpts, requestOpts] = getRetryOptions(retries, exemptStatusCodes)
|
||||
|
||||
const opts: Options = {}
|
||||
if (debug === 'true') opts.log = console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue