From f4d07e953cef5b3eb4c0696ac028a11b3f2b5eff Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 09:39:18 +0200 Subject: [PATCH] feat: create action --- dist/main/index.js | 2 ++ main.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/main/index.js b/dist/main/index.js index 1b72894..6a6d540 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -27943,11 +27943,13 @@ const extractCommits = () => __awaiter(this, void 0, void 0, function* () { } // For PRs, we need to get a list of commits via the GH API: const prCommitsUrl = typeof get(context, "payload.pull_request.commits_url"); + console.log('ide check URL-a'); if (prCommitsUrl) { try { const { body } = yield got.get(prCommitsUrl, { responseType: "json", }); + console.log('dobeo vodyyyy', body); if (Array.isArray(body)) { return body.map((item) => item.commit); } diff --git a/main.ts b/main.ts index b34eb81..20973ca 100644 --- a/main.ts +++ b/main.ts @@ -18,12 +18,14 @@ 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"); + console.log('ide check URL-a') if (prCommitsUrl) { try { const { body } = await got.get(prCommitsUrl, { responseType: "json", }); + console.log('dobeo vodyyyy', body) if (Array.isArray(body)) { return body.map((item) => item.commit); }