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.
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
import type { RenovateConfig } from '../../config/types';
|
|
import {
|
|
REPOSITORY_DISABLED_BY_CONFIG,
|
|
REPOSITORY_FORKED,
|
|
} from '../../constants/error-messages';
|
|
|
|
export function checkIfConfigured(config: RenovateConfig): void {
|
|
if (config.enabled === false) {
|
|
throw new Error(REPOSITORY_DISABLED_BY_CONFIG);
|
|
}
|
|
if (config.isFork && config.forkProcessing !== 'enabled') {
|
|
throw new Error(REPOSITORY_FORKED);
|
|
}
|
|
}
|