mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
refactor: UpdateTypeConfig
This commit is contained in:
parent
436abf51de
commit
8b42b62aa8
1 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
||||||
import { UpdateType } from '../../../../config';
|
import { UpdateType } from '../../../../config';
|
||||||
import * as allVersioning from '../../../../versioning';
|
import * as allVersioning from '../../../../versioning';
|
||||||
import { LookupUpdateConfig } from './common';
|
|
||||||
|
export interface UpdateTypeConfig {
|
||||||
|
separateMajorMinor?: boolean;
|
||||||
|
separateMultipleMajor?: boolean;
|
||||||
|
separateMinorPatch?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export function getUpdateType(
|
export function getUpdateType(
|
||||||
config: LookupUpdateConfig,
|
config: UpdateTypeConfig,
|
||||||
versioning: allVersioning.VersioningApi,
|
versioning: allVersioning.VersioningApi,
|
||||||
currentVersion: string,
|
currentVersion: string,
|
||||||
newVersion: string
|
newVersion: string
|
||||||
|
|
Loading…
Reference in a new issue