Skip to content

Commit

Permalink
get commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Aug 3, 2022
1 parent b7df4f6 commit 00df4ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ try {
repo: 'news',
per_page: 1,
})
console.log('commits: ' + require('util').inspect(commits))
console.log('commits: ' + require('util').inspect(commits), { depth: null })
const sha = commits.data[0].sha
const commit = await octokit.rest.repos.getCommit({
owner: 'duty-machine',
repo: 'news',
ref: sha,
})
console.log('commit: ' + require('util').inspect(commit), { depth: null })
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 00df4ba

Please sign in to comment.