File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - dev
8+ - debug
89
910jobs :
1011 get-commit-info :
Original file line number Diff line number Diff line change @@ -10,19 +10,24 @@ export async function run(): Promise<void> {
1010 try {
1111 // const repository: string = core.getInput('sourceRepo')
1212 const token = core . getInput ( 'github_token' , { required : true } )
13+ // const apicuron_token = core.getInput('apicuron_token', { required: true })
1314 const octokit = github . getOctokit ( token )
1415 const sha = github . context . sha
1516 const { owner, repo } = github . context . repo
16- const { data : commit } = await octokit . rest . repos . getCommit ( {
17+
18+ const data = await octokit . rest . repos . getCommit ( {
1719 owner,
1820 repo,
1921 ref : sha
2022 } )
21- console . log ( `Commit Message: ${ commit . commit . message } ` )
22- console . log ( `Author Name: ${ commit . commit . author ?. name } ` )
23- console . log ( `Author Email: ${ commit . commit . author ?. email } ` )
24- console . log ( `Committer Name: ${ commit . commit . committer ?. name } ` )
25- console . log ( `Committer Email: ${ commit . commit . committer ?. email } ` )
23+ // add orcid
24+ // send to apicuron
25+ console . log ( JSON . stringify ( data , null , 2 ) )
26+ // console.log(`Commit Message: ${commit.commit.message}`)
27+ // console.log(`Author Name: ${commit.commit.author?.name}`)
28+ // console.log(`Author Email: ${commit.commit.author?.email}`)
29+ // console.log(`Committer Name: ${commit.commit.committer?.name}`)
30+ // console.log(`Committer Email: ${commit.commit.committer?.email}`)
2631 } catch ( error ) {
2732 if ( error instanceof Error ) core . setFailed ( error . message )
2833 }
You can’t perform that action at this time.
0 commit comments