fix: loosen newXMajor migration

This commit is contained in:
Rhys Arkins 2021-02-03 16:08:35 +01:00
parent ee178df01a
commit 83a511a08c

View file

@ -491,11 +491,7 @@ export function migrateConfig(
if (subMigrate.isMigrated) { if (subMigrate.isMigrated) {
migratedConfig[key] = subMigrate.migratedConfig; migratedConfig[key] = subMigrate.migratedConfig;
} }
} else if ( } else if (key.startsWith('commitMessage') && is.string(val)) {
key.startsWith('commitMessage') &&
is.string(val) &&
(val.includes('currentVersion') || val.includes('newVersion'))
) {
migratedConfig[key] = val migratedConfig[key] = val
.replace(/currentVersion/g, 'currentValue') .replace(/currentVersion/g, 'currentValue')
.replace(/newVersion/g, 'newValue') .replace(/newVersion/g, 'newValue')