Skip to content

Commit 6bab611

Browse files
shivdeshCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 763938c commit 6bab611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-down.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ function runnerMinimumTimeExceeded(runner: RunnerInfo): boolean {
128128
}
129129

130130
async 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],

0 commit comments

Comments
 (0)