From 143044ed64f593a069e68faf0b9910db5a42a7fe Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Thu, 2 Nov 2017 04:59:31 +0100 Subject: [PATCH] fix: set contentBranch to undefined instead of null (#1077) This allows parameter substitution to work correctly (undefined is replace, null is not). Closes #1076 --- lib/workers/repository/apis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workers/repository/apis.js b/lib/workers/repository/apis.js index db1115d7cd..05bcf1ac0d 100644 --- a/lib/workers/repository/apis.js +++ b/lib/workers/repository/apis.js @@ -233,7 +233,7 @@ async function resolvePackageFiles(inputConfig) { logger.trace({ config }, 'resolvePackageFiles()'); const packageFiles = []; const contentBranch = config.repoIsOnboarded - ? config.baseBranch + ? config.baseBranch || undefined : config.onboardingBranch; config.contentBranch = contentBranch; for (let packageFile of config.packageFiles) { -- GitLab