0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/platform-commit-migration.ts
RahulGautamSingh bb6c27faf8 feat(github): convert platformCommit to enum (#29156)
BREAKING CHANGE: platformCommit will be automatically enabled if running as a GitHub app
2024-07-25 15:28:16 +02:00

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');
}
}
}