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';
1313
1414const logger = createChildLogger ( 'scale-down' ) ;
1515
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' ] ;
1818type RunnerState = OrgRunnerList [ number ] | RepoRunnerList [ number ] ;
1919
2020async function getOrCreateOctokit ( runner : RunnerInfo ) : Promise < Octokit > {
@@ -67,7 +67,7 @@ async function getGitHubSelfHostedRunnerState(
6767 owner : ec2runner . owner . split ( '/' ) [ 0 ] ,
6868 repo : ec2runner . owner . split ( '/' ) [ 1 ] ,
6969 } ) ;
70- metricGitHubAppRateLimit ( state . headers ) ;
70+ metricGitHubAppRateLimit ( state . headers ) ;
7171
7272 return {
7373 id : state . data . id ,
You can’t perform that action at this time.
0 commit comments