mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
27 lines
807 B
JavaScript
27 lines
807 B
JavaScript
const { checkOnboardingBranch } = require('../onboarding/branch');
|
|
const { checkIfConfigured } = require('../configured');
|
|
const { initApis } = require('../init/apis');
|
|
const { checkBaseBranch } = require('./base');
|
|
const { mergeRenovateConfig } = require('./config');
|
|
const { detectSemanticCommits } = require('./semantic');
|
|
|
|
async function initRepo(input) {
|
|
let config = {
|
|
...input,
|
|
errors: [],
|
|
warnings: [],
|
|
branchList: [],
|
|
};
|
|
config.global = config.global || {};
|
|
config = await initApis(config);
|
|
config = await checkOnboardingBranch(config);
|
|
config = await mergeRenovateConfig(config);
|
|
checkIfConfigured(config);
|
|
config = await checkBaseBranch(config);
|
|
config.semanticCommits = await detectSemanticCommits(config);
|
|
return config;
|
|
}
|
|
|
|
module.exports = {
|
|
initRepo,
|
|
};
|