Skip to content
Snippets Groups Projects
Commit e1599073 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: migrate ‘ every day’ schedule to empty (#937)

parent 8fc61e35
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,10 @@ function migrateConfig(config, parentConfig) { ...@@ -145,6 +145,10 @@ function migrateConfig(config, parentConfig) {
'every weekday' 'every weekday'
); );
} }
if (schedules[i].endsWith(' every day')) {
isMigrated = true;
schedules[i] = schedules[i].replace(' every day', '');
}
if ( if (
schedules[i].match(/every (mon|tues|wednes|thurs|fri|satur|sun)day$/) schedules[i].match(/every (mon|tues|wednes|thurs|fri|satur|sun)day$/)
) { ) {
......
...@@ -25,6 +25,7 @@ Object { ...@@ -25,6 +25,7 @@ Object {
], ],
"lockFileConfig": Object { "lockFileConfig": Object {
"automerge": true, "automerge": true,
"schedule": "before 5am",
}, },
"major": Object { "major": Object {
"automerge": false, "automerge": false,
......
...@@ -36,6 +36,7 @@ describe('config/migration', () => { ...@@ -36,6 +36,7 @@ describe('config/migration', () => {
], ],
lockFileConfig: { lockFileConfig: {
automerge: 'any', automerge: 'any',
schedule: 'before 5am every day',
}, },
devDependencies: { devDependencies: {
automerge: 'minor', automerge: 'minor',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment