File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lambdas/functions/control-plane/src/scale-runners Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,18 +128,18 @@ function runnerMinimumTimeExceeded(runner: RunnerInfo): boolean {
128128}
129129
130130async function deleteGitHubRunner (
131- githubAppClient : Octokit ,
131+ githubClient : Octokit ,
132132 ec2runner : RunnerInfo ,
133133 ghRunnerId : number ,
134134) : Promise < { ghRunnerId : number ; status : number ; success : boolean } > {
135135 try {
136136 const response =
137137 ec2runner . type === 'Org'
138- ? await githubAppClient . actions . deleteSelfHostedRunnerFromOrg ( {
138+ ? await githubClient . actions . deleteSelfHostedRunnerFromOrg ( {
139139 runner_id : ghRunnerId ,
140140 org : ec2runner . owner ,
141141 } )
142- : await githubAppClient . actions . deleteSelfHostedRunnerFromRepo ( {
142+ : await githubClient . actions . deleteSelfHostedRunnerFromRepo ( {
143143 runner_id : ghRunnerId ,
144144 owner : ec2runner . owner . split ( '/' ) [ 0 ] ,
145145 repo : ec2runner . owner . split ( '/' ) [ 1 ] ,
You can’t perform that action at this time.
0 commit comments