renovate/lib/config/migrations/custom/platform-commit-migration.ts

13 lines
351 B
TypeScript

import is from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration';
export class PlatformCommitMigration extends AbstractMigration {
override readonly propertyName = 'platformCommit';
override run(value: unknown): void {
if (is.boolean(value)) {
this.rewrite(value ? 'enabled' : 'disabled');
}
}
}