From a8acdb31ac0466505fe0581ee96733ab3f8f4cd8 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 15 Feb 2018 08:30:21 +0100 Subject: [PATCH] chore: add existingPr debug log --- lib/workers/pr/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 97377ab968..6c49115cbb 100644 --- a/lib/workers/pr/index.js +++ b/lib/workers/pr/index.js @@ -19,6 +19,9 @@ async function ensurePr(prConfig) { const { branchName, upgrades } = config; // Check if existing PR exists const existingPr = await platform.getBranchPr(branchName); + if (existingPr) { + logger.debug('Found existing PR'); + } config.upgrades = []; const branchStatus = await platform.getBranchStatus( branchName, @@ -224,6 +227,7 @@ async function ensurePr(prConfig) { try { if (existingPr) { + logger.debug('Processing existing PR'); if (config.automerge && branchStatus === 'failure') { logger.debug(`Setting assignees and reviewers as status checks failed`); await addAssigneesReviewers(config, existingPr); -- GitLab