fix: Use res.upgrades when returning from branchify

This commit is contained in:
Rhys Arkins 2017-07-06 11:05:03 +02:00
parent 1122f76e98
commit 80e4fd91fc

View file

@ -61,7 +61,7 @@ async function renovateRepository(packageFileConfig) {
const res = await upgrades.branchifyUpgrades(allUpgrades, config.logger); const res = await upgrades.branchifyUpgrades(allUpgrades, config.logger);
config.errors = config.errors.concat(res.errors); config.errors = config.errors.concat(res.errors);
config.warnings = config.warnings.concat(res.warnings); config.warnings = config.warnings.concat(res.warnings);
const branchUpgrades = res.branchUpgrades; const branchUpgrades = res.upgrades;
config.logger.debug(`Updating ${branchUpgrades.length} branch(es)`); config.logger.debug(`Updating ${branchUpgrades.length} branch(es)`);
config.logger.trace({ config: branchUpgrades }, 'branchUpgrades'); config.logger.trace({ config: branchUpgrades }, 'branchUpgrades');
if (config.repoIsOnboarded) { if (config.repoIsOnboarded) {