mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
e4ab753d88
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
17 lines
575 B
TypeScript
17 lines
575 B
TypeScript
import type { RenovateConfig } from '../../../config/types';
|
|
import { checkOnboardingBranch } from '../onboarding/branch';
|
|
import { mergeInheritedConfig } from './inherited';
|
|
import { mergeRenovateConfig } from './merge';
|
|
|
|
// istanbul ignore next
|
|
export async function getRepoConfig(
|
|
config_: RenovateConfig,
|
|
): Promise<RenovateConfig> {
|
|
let config = { ...config_ };
|
|
config.baseBranch = config.defaultBranch;
|
|
config = await mergeInheritedConfig(config);
|
|
config = await checkOnboardingBranch(config);
|
|
config = await mergeRenovateConfig(config);
|
|
return config;
|
|
}
|