@@ -8,21 +8,22 @@ import * as github from '@actions/github'
88 */
99export async function run ( ) : Promise < void > {
1010 try {
11+ const event = core . getInput ( 'event' )
12+ console . log ( JSON . stringify ( event , null , 2 ) )
1113 // const repository: string = core.getInput('sourceRepo')
12- const token = core . getInput ( 'github_token' , { required : true } )
14+ // const token = core.getInput('github_token', { required: true })
1315 // const apicuron_token = core.getInput('apicuron_token', { required: true })
14- const octokit = github . getOctokit ( token )
15- const sha = github . context . sha
16- const { owner, repo } = github . context . repo
17-
18- const data = await octokit . rest . repos . getCommit ( {
19- owner,
20- repo,
21- ref : sha
22- } )
16+ // const octokit = github.getOctokit(token)
17+ // const sha = github.context.sha
18+ // const { owner, repo } = github.context.repo
19+ // const data = await octokit.rest.repos.getCommit({
20+ // owner,
21+ // repo,
22+ // ref: sha
23+ // })
2324 // add orcid
2425 // send to apicuron
25- console . log ( JSON . stringify ( data , null , 2 ) )
26+ // console.log(JSON.stringify(data, null, 2))
2627 // console.log(`Commit Message: ${commit.commit.message}`)
2728 // console.log(`Author Name: ${commit.commit.author?.name}`)
2829 // console.log(`Author Email: ${commit.commit.author?.email}`)
0 commit comments