Skip to content

Commit a9e52ae

Browse files
committed
DEBUG
1 parent fe0ae8f commit a9e52ae

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ if (!process.env.GITHUB_REF?.startsWith("refs/pull/")) {
66
process.exit(0);
77
}
88

9-
const appId = parseInt(process.env.INPUT_APP_ID!);
9+
const [owner, repo] = process.env.GITHUB_REPOSITORY?.split("/")!;
10+
const pull_request_number = parseInt(process.env.GITHUB_REF?.split("/")[2]!);
11+
12+
const appId = 1230093;
1013
const privateKey = process.env.INPUT_PRIVATE_KEY!;
1114
const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
1215

1316
const app = new App({ appId, privateKey });
17+
const url = await app.getInstallationUrl();
18+
console.log(url);
1419
const octokit = await app.getInstallationOctokit(installationId);
1520

16-
const [owner, repo] = process.env.GITHUB_REPOSITORY?.split("/")!;
17-
const pull_request_number = parseInt(process.env.GITHUB_REF?.split("/")[2]!);
1821

1922
let body: string | null = null;
2023

0 commit comments

Comments
 (0)