diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 97377ab96864b8ae7945f61479ddfc139a9c2d6f..6c49115cbb627075106890644ae0a932be730d45 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);