File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15363,10 +15363,11 @@ module.exports = /******/ (() => {
15363
15363
/******/
15364
15364
/******/ /******/ return module . exports ;
15365
15365
/******/
15366
- } /* webpack/runtime/compat */ /******/
15366
+ } /* webpack/runtime/compat */
15367
15367
/******/
15368
15368
/************************************************************************/
15369
- /******/ /******/ __nccwpck_require__ . ab =
15369
+ /******/ /******/
15370
+ /******/ __nccwpck_require__ . ab =
15370
15371
__dirname +
15371
15372
"/" ; /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports
15372
15373
/******/ /******/ /******/ /******/ return __nccwpck_require__ ( 3109 ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { Octokit } from "@octokit/rest";
3
3
import { Endpoints } from "@octokit/types" ;
4
4
import * as core from "@actions/core" ;
5
5
6
+ type listInstallationsResponse = Endpoints [ "GET /app/installations" ] [ "response" ] ;
7
+
6
8
async function run ( ) : Promise < void > {
7
9
try {
8
10
const privateKey : string = core . getInput ( "private_key" ) ;
@@ -17,8 +19,6 @@ async function run(): Promise<void> {
17
19
baseUrl : process . env . GITHUB_API_URL || "https://api.github.com" ,
18
20
} ) ;
19
21
20
- type listInstallationsResponse = Endpoints [ "GET /app/installations" ] [ "response" ] ;
21
-
22
22
const installations : listInstallationsResponse = await appOctokit . apps . listInstallations ( ) ;
23
23
let installationId = installations . data [ 0 ] . id ;
24
24
if ( scope !== "" ) {
You can’t perform that action at this time.
0 commit comments