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/renovate-fork-migration.ts
Rhys Arkins a4ab4523f8
feat(config)!: forkProcessing (#20759)
Removes "includeForks" option and replaces with "forkProcessing". New default behavior is to process forks if automerge=false.

Closes #20752

BREAKING CHANGE: Forked repos will now be processed automatically if autodiscover=false. includeForks is removed and replaced by new option forkProcessing.
2023-03-10 09:34:41 +01:00

14 lines
406 B
TypeScript

import is from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration';
export class RenovateForkMigration extends AbstractMigration {
override readonly deprecated = true;
override readonly propertyName = 'renovateFork';
override run(value: unknown): void {
if (is.boolean(value)) {
this.setSafely('forkProcessing', value ? 'enabled' : 'disabled');
}
}
}