renovate/lib/workers/repository/configured.js
Rhys Arkins 80bed05146
feat: return result from renovateRepository
Repository logic code has been rearranged for better logic and file separation.

Closes #654
2017-11-05 05:45:49 +01:00

12 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');
}
}