feat: create action

This commit is contained in:
Adrian Smijulj 2020-06-11 09:41:10 +02:00
parent f4d07e953c
commit 08f72dbd4d

View file

@ -17,8 +17,9 @@ const extractCommits = async (): Promise<Commit[]> => {
}
// For PRs, we need to get a list of commits via the GH API:
const prCommitsUrl = typeof get(context, "payload.pull_request.commits_url");
const prCommitsUrl = get(context, "payload.pull_request.commits_url");
console.log('ide check URL-a')
console.log(context.payload)
if (prCommitsUrl) {
try {
const { body } = await got.get(prCommitsUrl, {