Skip to content
Snippets Groups Projects
Commit a2b3ca44 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: debug if repoIsOnboarded

parent 67eb60fb
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ async function pruneStaleBranches(config) { ...@@ -7,6 +7,7 @@ async function pruneStaleBranches(config) {
const { branchList } = config; const { branchList } = config;
logger.debug('Removing any stale branches'); logger.debug('Removing any stale branches');
logger.trace({ config }, `pruneStaleBranches`); logger.trace({ config }, `pruneStaleBranches`);
logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
if (!config.branchList) { if (!config.branchList) {
logger.debug('No branchList'); logger.debug('No branchList');
return; return;
......
...@@ -10,6 +10,7 @@ async function initRepo(input) { ...@@ -10,6 +10,7 @@ async function initRepo(input) {
config = await mergeRenovateConfig(config); config = await mergeRenovateConfig(config);
checkIfConfigured(config); checkIfConfigured(config);
await checkBaseBranch(config); await checkBaseBranch(config);
logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
return config; return config;
} }
......
...@@ -46,7 +46,7 @@ function branchifyUpgrades(config) { ...@@ -46,7 +46,7 @@ function branchifyUpgrades(config) {
branch.branchName = branchName; branch.branchName = branchName;
branches.push(branch); branches.push(branch);
} }
logger.debug('3'); logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
const branchList = config.repoIsOnboarded const branchList = config.repoIsOnboarded
? branches.map(upgrade => upgrade.branchName) ? branches.map(upgrade => upgrade.branchName)
: config.branchList; : config.branchList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment