mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
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:
parent
7d56162c49
commit
7253720c9b
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue