From a2b3ca440d0b2585a5f333ae11f51130967199e2 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 10 Jan 2018 09:09:17 +0100
Subject: [PATCH] refactor: debug if repoIsOnboarded

---
 lib/workers/repository/cleanup.js           | 1 +
 lib/workers/repository/init/index.js        | 1 +
 lib/workers/repository/updates/branchify.js | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/workers/repository/cleanup.js b/lib/workers/repository/cleanup.js
index afca0ab237..6df97c5261 100644
--- a/lib/workers/repository/cleanup.js
+++ b/lib/workers/repository/cleanup.js
@@ -7,6 +7,7 @@ async function pruneStaleBranches(config) {
   const { branchList } = config;
   logger.debug('Removing any stale branches');
   logger.trace({ config }, `pruneStaleBranches`);
+  logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
   if (!config.branchList) {
     logger.debug('No branchList');
     return;
diff --git a/lib/workers/repository/init/index.js b/lib/workers/repository/init/index.js
index 4fd2c2e5ad..75934c80fd 100644
--- a/lib/workers/repository/init/index.js
+++ b/lib/workers/repository/init/index.js
@@ -10,6 +10,7 @@ async function initRepo(input) {
   config = await mergeRenovateConfig(config);
   checkIfConfigured(config);
   await checkBaseBranch(config);
+  logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
   return config;
 }
 
diff --git a/lib/workers/repository/updates/branchify.js b/lib/workers/repository/updates/branchify.js
index adc557e1ea..53be83bd85 100644
--- a/lib/workers/repository/updates/branchify.js
+++ b/lib/workers/repository/updates/branchify.js
@@ -46,7 +46,7 @@ function branchifyUpgrades(config) {
     branch.branchName = branchName;
     branches.push(branch);
   }
-  logger.debug('3');
+  logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
   const branchList = config.repoIsOnboarded
     ? branches.map(upgrade => upgrade.branchName)
     : config.branchList;
-- 
GitLab