Skip to content

Commit 08d984f

Browse files
committed
Test
1 parent a9e52ae commit 08d984f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ const pull_request_number = parseInt(process.env.GITHUB_REF?.split("/")[2]!);
1111

1212
const appId = 1230093;
1313
const privateKey = process.env.INPUT_PRIVATE_KEY!;
14-
const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
14+
// const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
1515

1616
const app = new App({ appId, privateKey });
17-
const url = await app.getInstallationUrl();
18-
console.log(url);
17+
const { data: installationId } = await app.octokit.request("POST /repos/{owner}/{repo}/installation", { owner, repo });
1918
const octokit = await app.getInstallationOctokit(installationId);
2019

21-
2220
let body: string | null = null;
2321

2422
const readdirRecursively = (dir: string, files: string[] = []) => {

0 commit comments

Comments
 (0)