From 7dc92a8ab6deeb8788a7b0cc30b950d06c524b47 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 09:42:48 +0200 Subject: [PATCH] feat: create action --- dist/main/index.js | 4 +++- main.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/main/index.js b/dist/main/index.js index 6a6d540..5acd182 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -27942,8 +27942,10 @@ const extractCommits = () => __awaiter(this, void 0, void 0, function* () { return context.payload.commits; } // 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('dobeoo PR URL', prCommitsUrl); + console.log(context.payload); if (prCommitsUrl) { try { const { body } = yield got.get(prCommitsUrl, { diff --git a/main.ts b/main.ts index 3d6bb6a..a2fb35c 100644 --- a/main.ts +++ b/main.ts @@ -19,6 +19,7 @@ const extractCommits = async (): Promise => { // For PRs, we need to get a list of commits via the GH API: const prCommitsUrl = get(context, "payload.pull_request.commits_url"); console.log('ide check URL-a') + console.log('dobeoo PR URL', prCommitsUrl) console.log(context.payload) if (prCommitsUrl) { try {