Skip to content
Snippets Groups Projects
Commit f7f3bc1f authored by Ciro Santilli's avatar Ciro Santilli
Browse files

get commit

parent b7df4f61
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment