File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
1013const privateKey = process . env . INPUT_PRIVATE_KEY ! ;
1114const installationId = parseInt ( process . env . INPUT_INSTALLATION_ID ! ) ;
1215
1316const app = new App ( { appId, privateKey } ) ;
17+ const url = await app . getInstallationUrl ( ) ;
18+ console . log ( url ) ;
1419const 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
1922let body : string | null = null ;
2023
You can’t perform that action at this time.
0 commit comments