From 4d940b5d13b48393c81670f9d04289c8e4b40be0 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 5 Dec 2018 06:00:38 +0100 Subject: [PATCH] fix(migration): clone original schedule before update --- lib/config/migration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/migration.js b/lib/config/migration.js index 4d14bac104..e152def7f9 100644 --- a/lib/config/migration.js +++ b/lib/config/migration.js @@ -233,7 +233,7 @@ function migrateConfig(config) { delete migratedConfig.baseBranch; } else if (key === 'schedule' && val) { // massage to array first - const schedules = is.string(val) ? [val] : val; + const schedules = is.string(val) ? [val] : [...val]; // split 'and' const schedulesLength = schedules.length; for (let i = 0; i < schedulesLength; i += 1) { -- GitLab