Select Git revision
configured.ts
configured.ts 381 B
import { RenovateConfig } from '../../config';
import {
REPOSITORY_DISABLED,
REPOSITORY_FORKED,
} from '../../constants/error-messages';
export function checkIfConfigured(config: RenovateConfig): void {
if (config.enabled === false) {
throw new Error(REPOSITORY_DISABLED);
}
if (config.isFork && !config.includeForks) {
throw new Error(REPOSITORY_FORKED);
}
}