Skip to content

Commit 2652b2a

Browse files
committed
move type alias
1 parent 89b29d2 commit 2652b2a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15363,10 +15363,11 @@ module.exports = /******/ (() => {
1536315363
/******/
1536415364
/******/ /******/ return module.exports;
1536515365
/******/
15366-
} /* webpack/runtime/compat */ /******/
15366+
} /* webpack/runtime/compat */
1536715367
/******/
1536815368
/************************************************************************/
15369-
/******/ /******/ __nccwpck_require__.ab =
15369+
/******/ /******/
15370+
/******/ __nccwpck_require__.ab =
1537015371
__dirname +
1537115372
"/"; /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports
1537215373
/******/ /******/ /******/ /******/ return __nccwpck_require__(3109);

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Octokit } from "@octokit/rest";
33
import { Endpoints } from "@octokit/types";
44
import * as core from "@actions/core";
55

6+
type listInstallationsResponse = Endpoints["GET /app/installations"]["response"];
7+
68
async function run(): Promise<void> {
79
try {
810
const privateKey: string = core.getInput("private_key");
@@ -17,8 +19,6 @@ async function run(): Promise<void> {
1719
baseUrl: process.env.GITHUB_API_URL || "https://api.github.com",
1820
});
1921

20-
type listInstallationsResponse = Endpoints["GET /app/installations"]["response"];
21-
2222
const installations: listInstallationsResponse = await appOctokit.apps.listInstallations();
2323
let installationId = installations.data[0].id;
2424
if (scope !== "") {

0 commit comments

Comments
 (0)