We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e52ae commit 08d984fCopy full SHA for 08d984f
1 file changed
src/index.ts
@@ -11,14 +11,12 @@ const pull_request_number = parseInt(process.env.GITHUB_REF?.split("/")[2]!);
11
12
const appId = 1230093;
13
const privateKey = process.env.INPUT_PRIVATE_KEY!;
14
-const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
+// const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
15
16
const app = new App({ appId, privateKey });
17
-const url = await app.getInstallationUrl();
18
-console.log(url);
+const { data: installationId } = await app.octokit.request("POST /repos/{owner}/{repo}/installation", { owner, repo });
19
const octokit = await app.getInstallationOctokit(installationId);
20
21
-
22
let body: string | null = null;
23
24
const readdirRecursively = (dir: string, files: string[] = []) => {
0 commit comments