diff --git a/lib/workers/repository/process/index.js b/lib/workers/repository/process/index.js index 1e58037ca265fc599e5444be03b51f05124ce950..459d2c3d28b870b58a83d026d8f7a16c8eb99f6e 100644 --- a/lib/workers/repository/process/index.js +++ b/lib/workers/repository/process/index.js @@ -15,8 +15,10 @@ async function processRepo(config) { for (const baseBranch of config.baseBranches) { logger.debug(`baseBranch: ${baseBranch}`); const baseBranchConfig = mergeChildConfig(config, { baseBranch }); - baseBranchConfig.branchPrefix += `${baseBranch}-`; - baseBranchConfig.hasBaseBranches = true; + if (config.baseBranches.length > 1) { + baseBranchConfig.branchPrefix += `${baseBranch}-`; + baseBranchConfig.hasBaseBranches = true; + } platform.setBaseBranch(baseBranch); const baseBranchRes = await extractAndUpdate(baseBranchConfig); ({ res } = baseBranchRes);