From 08f72dbd4d0e221e1482b61201e89fbd704516e2 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 09:41:10 +0200 Subject: [PATCH] feat: create action --- main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 20973ca..3d6bb6a 100644 --- a/main.ts +++ b/main.ts @@ -17,8 +17,9 @@ const extractCommits = async (): Promise => { } // 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, {