0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/workers/repository/init/config.ts
Rhys Arkins e4ab753d88
feat(config): inheritConfig (#27864)
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>
2024-03-23 08:12:36 +00:00

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;
}