mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 13:48:55 +00:00
bb6c27faf8
BREAKING CHANGE: platformCommit will be automatically enabled if running as a GitHub app
12 lines
351 B
TypeScript
12 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');
|
|
}
|
|
}
|
|
}
|