renovate/lib/workers/repository/configured.js
2018-12-31 07:46:00 +02:00

12 lines
234 B
JavaScript

module.exports = {
checkIfConfigured,
};
function checkIfConfigured(config) {
if (config.enabled === false) {
throw new Error('disabled');
}
if (config.isFork && !config.includeForks) {
throw new Error('fork');
}
}