mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
13 lines
234 B
JavaScript
13 lines
234 B
JavaScript
|
module.exports = {
|
||
|
checkIfConfigured,
|
||
|
};
|
||
|
|
||
|
function checkIfConfigured(config) {
|
||
|
if (config.enabled === false) {
|
||
|
throw new Error('disabled');
|
||
|
}
|
||
|
if (config.isFork && !config.renovateFork) {
|
||
|
throw new Error('fork');
|
||
|
}
|
||
|
}
|