mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
13bbc5d6a2
Resets any language or manager` additionalBranchPrefix` values to empty string. Add the `compatibility:additionalBranchPrefix` prefix to restore previous behavior. BREAKING CHANGE: Removal of default `additionalBranchPrefix` values will cause branch names to change for docker/helm/buildkite/cargo/homebrew.
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import type { Preset, PresetConfig } from '../types';
|
|
import * as compatibilityPreset from './compatibility';
|
|
import * as configPreset from './config';
|
|
import * as defaultPreset from './default';
|
|
import * as dockerPreset from './docker';
|
|
import * as groupPreset from './group';
|
|
import * as helpersPreset from './helpers';
|
|
import * as monorepoPreset from './monorepo';
|
|
import * as npm from './npm';
|
|
import * as packagesPreset from './packages';
|
|
import * as previewPreset from './preview';
|
|
import * as regexManagersPreset from './regex-managers';
|
|
import * as schedulePreset from './schedule';
|
|
import * as workaroundsPreset from './workarounds';
|
|
|
|
export const groups: Record<string, Record<string, Preset>> = {
|
|
compatibility: compatibilityPreset.presets,
|
|
config: configPreset.presets,
|
|
default: defaultPreset.presets,
|
|
docker: dockerPreset.presets,
|
|
group: groupPreset.presets,
|
|
helpers: helpersPreset.presets,
|
|
monorepo: monorepoPreset.presets,
|
|
npm: npm.presets,
|
|
packages: packagesPreset.presets,
|
|
preview: previewPreset.presets,
|
|
regexManagers: regexManagersPreset.presets,
|
|
schedule: schedulePreset.presets,
|
|
workarounds: workaroundsPreset.presets,
|
|
};
|
|
|
|
export function getPreset({
|
|
packageName: pkgName,
|
|
presetName,
|
|
}: PresetConfig): Preset | undefined {
|
|
return groups[pkgName]
|
|
? groups[pkgName][presetName]
|
|
: /* istanbul ignore next */ undefined;
|
|
}
|