mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 17:51:49 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import type { RenovateConfig } from '../../config/types.ts';
|
|
import {
|
|
REPOSITORY_DISABLED_BY_CONFIG,
|
|
REPOSITORY_FORKED,
|
|
} from '../../constants/error-messages.ts';
|
|
|
|
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);
|
|
}
|
|
}
|