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 @@ -13,8 +13,8 @@ import { getGitHubEnterpriseApiUrl } from './scale-up';
13
13
14
14
const logger = createChildLogger ( 'scale-down' ) ;
15
15
16
- type OrgRunnerList = Endpoints [ " GET /orgs/{org}/actions/runners" ] [ " response" ] [ " data" ] [ " runners" ] ;
17
- type RepoRunnerList = Endpoints [ " GET /repos/{owner}/{repo}/actions/runners" ] [ " response" ] [ " data" ] [ " runners" ] ;
16
+ type OrgRunnerList = Endpoints [ ' GET /orgs/{org}/actions/runners' ] [ ' response' ] [ ' data' ] [ ' runners' ] ;
17
+ type RepoRunnerList = Endpoints [ ' GET /repos/{owner}/{repo}/actions/runners' ] [ ' response' ] [ ' data' ] [ ' runners' ] ;
18
18
type RunnerState = OrgRunnerList [ number ] | RepoRunnerList [ number ] ;
19
19
20
20
async function getOrCreateOctokit ( runner : RunnerInfo ) : Promise < Octokit > {
@@ -67,7 +67,7 @@ async function getGitHubSelfHostedRunnerState(
67
67
owner : ec2runner . owner . split ( '/' ) [ 0 ] ,
68
68
repo : ec2runner . owner . split ( '/' ) [ 1 ] ,
69
69
} ) ;
70
- metricGitHubAppRateLimit ( state . headers ) ;
70
+ metricGitHubAppRateLimit ( state . headers ) ;
71
71
72
72
return {
73
73
id : state . data . id ,
You can’t perform that action at this time.
0 commit comments