File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import * as core from '@actions/core'
22import * as github from '@actions/github'
3+ import { retry } from "@octokit/plugin-retry" ;
34
45const urlParse = / \/ (?< ownerType > o r g s | u s e r s ) \/ (?< ownerName > [ ^ / ] + ) \/ p r o j e c t s \/ (?< projectNumber > \d + ) /
56
@@ -44,7 +45,7 @@ export async function addToProject(): Promise<void> {
4445 . filter ( l => l . length > 0 ) ?? [ ]
4546 const labelOperator = core . getInput ( 'label-operator' ) . trim ( ) . toLocaleLowerCase ( )
4647
47- const octokit = github . getOctokit ( ghToken )
48+ const octokit = github . getOctokit ( ghToken , { } , [ retry ] )
4849
4950 const issue = github . context . payload . issue ?? github . context . payload . pull_request
5051 const issueLabels : string [ ] = ( issue ?. labels ?? [ ] ) . map ( ( l : { name : string } ) => l . name . toLowerCase ( ) )
You can’t perform that action at this time.
0 commit comments