Skip to content

Commit

Permalink
fix: loosen newXMajor migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 3, 2021
1 parent ee178df commit 83a511a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/config/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,7 @@ export function migrateConfig(
if (subMigrate.isMigrated) {
migratedConfig[key] = subMigrate.migratedConfig;
}
} else if (
key.startsWith('commitMessage') &&
is.string(val) &&
(val.includes('currentVersion') || val.includes('newVersion'))
) {
} else if (key.startsWith('commitMessage') && is.string(val)) {
migratedConfig[key] = val
.replace(/currentVersion/g, 'currentValue')
.replace(/newVersion/g, 'newValue')
Expand Down

0 comments on commit 83a511a

Please sign in to comment.