From c93c761d27bb8f38f9346028a20d77765983f02a Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Thu, 19 Oct 2017 06:35:21 +0200 Subject: [PATCH] refactor: log addReviewers and add empty team reviewers (#988) See if this helps #782 --- lib/api/github.js | 1 + lib/workers/pr/index.js | 2 +- test/api/__snapshots__/github.spec.js.snap | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api/github.js b/lib/api/github.js index 83e6df20b8..cc0ab896a9 100644 --- a/lib/api/github.js +++ b/lib/api/github.js @@ -454,6 +454,7 @@ async function addReviewers(issueNo, reviewers) { }, body: { reviewers, + team_reviewers: [], }, } ); diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 6040b29190..028d688da1 100644 --- a/lib/workers/pr/index.js +++ b/lib/workers/pr/index.js @@ -209,7 +209,7 @@ async function addAssigneesReviewers(config, pr) { } } if (config.reviewers.length > 0) { - logger.debug({ reviewers: config.reviewers }, 'Adding reviewers'); + logger.info({ reviewers: config.reviewers }, 'Adding reviewers'); try { const reviewers = config.reviewers.map( reviewer => diff --git a/test/api/__snapshots__/github.spec.js.snap b/test/api/__snapshots__/github.spec.js.snap index 41434f94ec..5ac959db9b 100644 --- a/test/api/__snapshots__/github.spec.js.snap +++ b/test/api/__snapshots__/github.spec.js.snap @@ -40,6 +40,7 @@ Array [ "someuser", "someotheruser", ], + "team_reviewers": Array [], }, "headers": Object { "accept": "application/vnd.github.thor-preview+json", -- GitLab