mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
17 lines
564 B
TypeScript
17 lines
564 B
TypeScript
import { isString } from '@sindresorhus/is';
|
|
import { AbstractMigration } from '../base/abstract-migration.ts';
|
|
|
|
export class SemanticPrefixMigration extends AbstractMigration {
|
|
override readonly deprecated = true;
|
|
override readonly propertyName = 'semanticPrefix';
|
|
|
|
override run(value: unknown): void {
|
|
if (isString(value)) {
|
|
const [text] = value.split(':');
|
|
const [type, scope] = text.split('(');
|
|
this.setSafely('semanticCommitType', type);
|
|
this.setSafely('semanticCommitScope', scope ? scope.split(')')[0] : null);
|
|
}
|
|
}
|
|
}
|