feat(config): log base branch config (#18799)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Closes https://github.com/renovatebot/renovate/issues/17635
This commit is contained in:
Philip 2022-11-24 13:15:10 +02:00 committed by GitHub
parent 7d56162c49
commit 7253720c9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ async function getBaseBranchConfig(
config.repository,
baseBranch
);
logger.debug({ config: baseBranchConfig }, 'Base branch config raw');
} catch (err) {
logger.error(
{ configFileName, baseBranch },
@ -57,6 +58,15 @@ async function getBaseBranchConfig(
}
baseBranchConfig = mergeChildConfig(config, baseBranchConfig);
// istanbul ignore if
if (config.printConfig) {
logger.info(
{ config: baseBranchConfig },
'Base branch config after merge'
);
}
// baseBranches value should be based off the default branch
baseBranchConfig.baseBranches = config.baseBranches;
}