mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { isBoolean } from '@sindresorhus/is';
|
|
import { AbstractMigration } from '../base/abstract-migration.ts';
|
|
|
|
export class PlatformCommitMigration extends AbstractMigration {
|
|
override readonly propertyName = 'platformCommit';
|
|
|
|
override run(value: unknown): void {
|
|
if (isBoolean(value)) {
|
|
this.rewrite(value ? 'enabled' : 'disabled');
|
|
}
|
|
}
|
|
}
|