Skip to content
Snippets Groups Projects
Commit e1b827a1 authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(worker): branchName should be string (#4432)

parent 656cb0f7
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,10 @@ async function getOnboardingConfig(config) { ...@@ -25,9 +25,10 @@ async function getOnboardingConfig(config) {
} }
if (branchName) { if (branchName) {
logger.info({ branch: branchName }, 'Migrating Greenkeeper branchName'); logger.info({ branch: branchName }, 'Migrating Greenkeeper branchName');
onboardingConfig.branchName = [ onboardingConfig.branchName = String(branchName).replace(
String(branchName).replace('greenkeeper', appSlug), 'greenkeeper',
]; appSlug
);
} }
if (is.nonEmptyArray(ignore)) { if (is.nonEmptyArray(ignore)) {
logger.info({ ignore }, 'Migrating Greenkeeper ignore'); logger.info({ ignore }, 'Migrating Greenkeeper ignore');
......
...@@ -6,9 +6,7 @@ exports[`workers/repository/onboarding/branch checkOnboardingBranch creates onbo ...@@ -6,9 +6,7 @@ exports[`workers/repository/onboarding/branch checkOnboardingBranch creates onbo
\\"labels\\": [ \\"labels\\": [
\\"renovate\\" \\"renovate\\"
], ],
\\"branchName\\": [ \\"branchName\\": \\"renovate--\\",
\\"renovate--\\"
],
\\"ignoreDeps\\": [ \\"ignoreDeps\\": [
\\"foo\\", \\"foo\\",
\\"bar\\" \\"bar\\"
......
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