renovate/lib/workers/repository/configured.js

13 lines
234 B
JavaScript
Raw Normal View History

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