mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
a4ab4523f8
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.
14 lines
406 B
TypeScript
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');
|
|
}
|
|
}
|
|
}
|