2021-03-02 20:44:55 +00:00
|
|
|
import type { LogLevel } from 'bunyan';
|
|
|
|
import type { Range } from 'semver';
|
|
|
|
import type { HostRule } from '../types';
|
2021-05-19 14:05:29 +00:00
|
|
|
import type { GitNoVerifyOption } from '../util/git';
|
2019-08-23 13:46:31 +00:00
|
|
|
|
|
|
|
export type RenovateConfigStage =
|
|
|
|
| 'global'
|
|
|
|
| 'repository'
|
|
|
|
| 'package'
|
|
|
|
| 'branch'
|
|
|
|
| 'pr';
|
|
|
|
|
2020-06-29 13:51:22 +00:00
|
|
|
export type RepositoryCacheConfig = 'disabled' | 'enabled' | 'reset';
|
|
|
|
|
2020-03-02 11:06:16 +00:00
|
|
|
export interface GroupConfig extends Record<string, unknown> {
|
|
|
|
branchName?: string;
|
|
|
|
branchTopic?: string;
|
|
|
|
}
|
|
|
|
|
2019-08-23 13:46:31 +00:00
|
|
|
// TODO: Proper typings
|
|
|
|
export interface RenovateSharedConfig {
|
2020-10-06 20:02:35 +00:00
|
|
|
$schema?: string;
|
2019-08-23 13:46:31 +00:00
|
|
|
automerge?: boolean;
|
2021-07-29 09:06:55 +00:00
|
|
|
automergeStrategy?: MergeStrategy;
|
2020-03-02 11:06:16 +00:00
|
|
|
branchPrefix?: string;
|
2019-10-04 07:36:07 +00:00
|
|
|
branchName?: string;
|
2020-05-03 08:14:22 +00:00
|
|
|
manager?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
commitMessage?: string;
|
2020-08-26 13:00:45 +00:00
|
|
|
commitMessagePrefix?: string;
|
2020-06-01 05:30:11 +00:00
|
|
|
draftPR?: boolean;
|
2019-08-23 13:46:31 +00:00
|
|
|
enabled?: boolean;
|
2020-03-02 11:06:16 +00:00
|
|
|
enabledManagers?: string[];
|
2020-10-06 20:02:35 +00:00
|
|
|
extends?: string[];
|
2020-05-03 08:14:22 +00:00
|
|
|
fileMatch?: string[];
|
2020-03-02 11:06:16 +00:00
|
|
|
group?: GroupConfig;
|
|
|
|
groupName?: string;
|
|
|
|
groupSlug?: string;
|
2020-05-03 08:14:22 +00:00
|
|
|
includePaths?: string[];
|
2019-10-04 07:36:07 +00:00
|
|
|
ignoreDeps?: string[];
|
2020-03-02 11:06:16 +00:00
|
|
|
ignorePaths?: string[];
|
2021-09-12 15:23:18 +00:00
|
|
|
ignoreTests?: boolean;
|
2019-10-04 07:36:07 +00:00
|
|
|
labels?: string[];
|
2020-12-03 14:20:09 +00:00
|
|
|
addLabels?: string[];
|
2020-07-11 09:55:30 +00:00
|
|
|
dependencyDashboardApproval?: boolean;
|
2021-02-03 14:48:54 +00:00
|
|
|
hashedBranchLength?: number;
|
2020-03-02 11:06:16 +00:00
|
|
|
npmrc?: string;
|
2021-09-23 11:17:44 +00:00
|
|
|
npmrcMerge?: boolean;
|
2019-12-06 14:41:59 +00:00
|
|
|
platform?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
postUpgradeTasks?: PostUpgradeTasks;
|
|
|
|
prBodyColumns?: string[];
|
2020-05-07 08:23:45 +00:00
|
|
|
prBodyDefinitions?: Record<string, string>;
|
2020-03-02 11:06:16 +00:00
|
|
|
prCreation?: 'immediate' | 'not-pending' | 'status-success' | 'approval';
|
2019-12-06 14:41:59 +00:00
|
|
|
productLinks?: Record<string, string>;
|
2020-01-06 08:16:15 +00:00
|
|
|
prPriority?: number;
|
2020-03-02 11:06:16 +00:00
|
|
|
rebaseLabel?: string;
|
2020-02-22 15:31:50 +00:00
|
|
|
rebaseWhen?: string;
|
2019-12-06 14:41:59 +00:00
|
|
|
recreateClosed?: boolean;
|
2020-06-29 13:51:22 +00:00
|
|
|
repository?: string;
|
|
|
|
repositoryCache?: RepositoryCacheConfig;
|
2020-01-06 08:16:15 +00:00
|
|
|
schedule?: string[];
|
2020-09-11 11:15:04 +00:00
|
|
|
semanticCommits?: 'auto' | 'enabled' | 'disabled';
|
2019-10-04 07:36:07 +00:00
|
|
|
semanticCommitScope?: string;
|
2019-08-23 13:46:31 +00:00
|
|
|
semanticCommitType?: string;
|
2020-01-06 08:16:15 +00:00
|
|
|
suppressNotifications?: string[];
|
2019-12-06 14:41:59 +00:00
|
|
|
timezone?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
unicodeEmoji?: boolean;
|
2021-03-14 08:27:40 +00:00
|
|
|
gitIgnoredAuthors?: string[];
|
2020-03-02 11:06:16 +00:00
|
|
|
}
|
|
|
|
|
2021-02-05 09:49:34 +00:00
|
|
|
// Config options used only within the global worker
|
2021-02-05 12:08:17 +00:00
|
|
|
// The below should contain config options where stage=global
|
2021-02-07 21:12:54 +00:00
|
|
|
export interface GlobalOnlyConfig {
|
2021-02-05 09:49:34 +00:00
|
|
|
autodiscover?: boolean;
|
2021-04-20 06:59:42 +00:00
|
|
|
autodiscoverFilter?: string;
|
2021-02-05 21:35:03 +00:00
|
|
|
baseDir?: string;
|
2021-05-19 10:27:37 +00:00
|
|
|
cacheDir?: string;
|
2021-11-04 08:43:52 +00:00
|
|
|
detectHostRulesFromEnv?: boolean;
|
2021-02-05 11:43:26 +00:00
|
|
|
forceCli?: boolean;
|
2021-05-19 14:05:29 +00:00
|
|
|
gitNoVerify?: GitNoVerifyOption[];
|
2021-02-05 11:43:26 +00:00
|
|
|
gitPrivateKey?: string;
|
2021-02-05 09:49:34 +00:00
|
|
|
logFile?: string;
|
|
|
|
logFileLevel?: LogLevel;
|
2021-02-05 11:43:26 +00:00
|
|
|
prCommitsPerRunLimit?: number;
|
2021-02-05 16:37:31 +00:00
|
|
|
privateKeyPath?: string;
|
2021-09-16 10:11:13 +00:00
|
|
|
privateKeyPathOld?: string;
|
2021-02-05 09:49:34 +00:00
|
|
|
redisUrl?: string;
|
|
|
|
repositories?: RenovateRepository[];
|
|
|
|
}
|
|
|
|
|
2021-02-05 12:08:17 +00:00
|
|
|
// Config options used within the repository worker, but not user configurable
|
2021-08-15 06:34:54 +00:00
|
|
|
// The below should contain config options where globalOnly=true
|
2021-08-16 16:00:51 +00:00
|
|
|
export interface RepoGlobalConfig {
|
2021-04-15 20:15:30 +00:00
|
|
|
allowCustomCrateRegistries?: boolean;
|
2021-11-14 06:02:53 +00:00
|
|
|
allowPlugins?: boolean;
|
2021-02-05 08:58:48 +00:00
|
|
|
allowPostUpgradeCommandTemplating?: boolean;
|
2021-04-15 20:15:30 +00:00
|
|
|
allowScripts?: boolean;
|
2021-02-05 08:58:48 +00:00
|
|
|
allowedPostUpgradeCommands?: string[];
|
2021-06-02 06:50:23 +00:00
|
|
|
binarySource?: 'docker' | 'global';
|
2021-02-07 21:06:56 +00:00
|
|
|
customEnvVariables?: Record<string, string>;
|
2021-04-08 10:10:25 +00:00
|
|
|
dockerChildPrefix?: string;
|
2021-02-05 08:20:47 +00:00
|
|
|
dockerImagePrefix?: string;
|
|
|
|
dockerUser?: string;
|
2021-02-05 21:21:24 +00:00
|
|
|
dryRun?: boolean;
|
2021-04-15 20:15:30 +00:00
|
|
|
exposeAllEnv?: boolean;
|
2021-05-22 21:47:28 +00:00
|
|
|
migratePresets?: Record<string, string>;
|
2021-09-10 10:47:33 +00:00
|
|
|
privateKey?: string;
|
|
|
|
privateKeyOld?: string;
|
2021-05-26 11:22:16 +00:00
|
|
|
localDir?: string;
|
2021-05-17 13:21:28 +00:00
|
|
|
cacheDir?: string;
|
2021-02-05 08:20:47 +00:00
|
|
|
}
|
|
|
|
|
2021-02-07 21:13:55 +00:00
|
|
|
export interface LegacyAdminConfig {
|
2020-04-14 05:05:30 +00:00
|
|
|
endpoint?: string;
|
|
|
|
|
2021-05-26 11:22:16 +00:00
|
|
|
localDir?: string;
|
2021-02-05 09:49:34 +00:00
|
|
|
|
2020-03-02 11:06:16 +00:00
|
|
|
logContext?: string;
|
|
|
|
|
|
|
|
onboarding?: boolean;
|
|
|
|
onboardingBranch?: string;
|
2020-08-26 13:00:45 +00:00
|
|
|
onboardingCommitMessage?: string;
|
2021-10-28 11:29:49 +00:00
|
|
|
onboardingNoDeps?: boolean;
|
2020-03-02 11:06:16 +00:00
|
|
|
onboardingPrTitle?: string;
|
|
|
|
onboardingConfig?: RenovateSharedConfig;
|
2020-12-07 09:14:46 +00:00
|
|
|
onboardingConfigFileName?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
|
2020-04-14 05:05:30 +00:00
|
|
|
platform?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
requireConfig?: boolean;
|
2019-08-23 13:46:31 +00:00
|
|
|
}
|
2021-04-09 03:51:03 +00:00
|
|
|
export type ExecutionMode = 'branch' | 'update';
|
2019-08-23 13:46:31 +00:00
|
|
|
|
2020-02-04 05:59:13 +00:00
|
|
|
export type PostUpgradeTasks = {
|
|
|
|
commands?: string[];
|
|
|
|
fileFilters?: string[];
|
2021-04-09 03:51:03 +00:00
|
|
|
executionMode: ExecutionMode;
|
2020-02-04 05:59:13 +00:00
|
|
|
};
|
|
|
|
|
2021-05-17 08:06:24 +00:00
|
|
|
type UpdateConfig<T extends RenovateSharedConfig = RenovateSharedConfig> =
|
|
|
|
Partial<Record<UpdateType, T>>;
|
2019-08-23 13:46:31 +00:00
|
|
|
|
2019-11-26 13:05:25 +00:00
|
|
|
export type RenovateRepository =
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
repository: string;
|
2021-03-22 14:51:38 +00:00
|
|
|
secrets?: Record<string, string>;
|
2019-11-26 13:05:25 +00:00
|
|
|
};
|
|
|
|
|
2020-03-06 08:07:55 +00:00
|
|
|
export interface CustomManager {
|
2020-05-03 14:57:17 +00:00
|
|
|
fileMatch: string[];
|
2020-03-06 08:07:55 +00:00
|
|
|
matchStrings: string[];
|
2020-11-27 05:55:57 +00:00
|
|
|
matchStringsStrategy?: string;
|
2020-03-06 08:07:55 +00:00
|
|
|
depNameTemplate?: string;
|
|
|
|
datasourceTemplate?: string;
|
|
|
|
lookupNameTemplate?: string;
|
|
|
|
versioningTemplate?: string;
|
2021-10-05 12:21:11 +00:00
|
|
|
autoReplaceStringTemplate?: string;
|
2020-03-06 08:07:55 +00:00
|
|
|
}
|
|
|
|
|
2019-08-23 13:46:31 +00:00
|
|
|
// TODO: Proper typings
|
|
|
|
export interface RenovateConfig
|
2021-02-07 21:13:55 +00:00
|
|
|
extends LegacyAdminConfig,
|
2020-03-02 11:06:16 +00:00
|
|
|
RenovateSharedConfig,
|
2019-08-23 13:46:31 +00:00
|
|
|
UpdateConfig<PackageRule>,
|
2020-05-30 05:15:08 +00:00
|
|
|
AssigneesAndReviewersConfig,
|
2020-03-02 11:06:16 +00:00
|
|
|
Record<string, unknown> {
|
2020-05-06 07:56:52 +00:00
|
|
|
depName?: string;
|
2019-08-23 13:46:31 +00:00
|
|
|
baseBranches?: string[];
|
2020-03-02 11:06:16 +00:00
|
|
|
baseBranch?: string;
|
2020-07-12 19:30:11 +00:00
|
|
|
defaultBranch?: string;
|
2019-10-04 07:36:07 +00:00
|
|
|
branchList?: string[];
|
2020-04-29 12:27:33 +00:00
|
|
|
description?: string | string[];
|
2021-03-11 07:03:37 +00:00
|
|
|
force?: RenovateConfig;
|
2019-08-23 13:46:31 +00:00
|
|
|
errors?: ValidationMessage[];
|
2019-12-17 05:56:42 +00:00
|
|
|
|
2020-03-02 11:06:16 +00:00
|
|
|
gitAuthor?: string;
|
2019-12-17 05:56:42 +00:00
|
|
|
|
2020-03-02 11:06:16 +00:00
|
|
|
hostRules?: HostRule[];
|
|
|
|
|
|
|
|
ignorePresets?: string[];
|
2019-10-04 07:36:07 +00:00
|
|
|
includeForks?: boolean;
|
|
|
|
isFork?: boolean;
|
2020-03-02 11:06:16 +00:00
|
|
|
|
2020-05-03 15:03:23 +00:00
|
|
|
fileList?: string[];
|
2021-02-05 21:24:20 +00:00
|
|
|
configWarningReuseIssue?: boolean;
|
2020-07-11 09:55:30 +00:00
|
|
|
dependencyDashboard?: boolean;
|
|
|
|
dependencyDashboardAutoclose?: boolean;
|
|
|
|
dependencyDashboardChecks?: Record<string, string>;
|
2021-06-18 17:31:25 +00:00
|
|
|
dependencyDashboardIssue?: number;
|
2020-07-11 09:55:30 +00:00
|
|
|
dependencyDashboardRebaseAllOpen?: boolean;
|
|
|
|
dependencyDashboardTitle?: string;
|
2020-07-23 13:35:43 +00:00
|
|
|
dependencyDashboardHeader?: string;
|
|
|
|
dependencyDashboardFooter?: string;
|
2021-07-09 07:41:43 +00:00
|
|
|
dependencyDashboardLabels?: string[];
|
2020-04-15 08:33:00 +00:00
|
|
|
packageFile?: string;
|
2019-08-23 13:46:31 +00:00
|
|
|
packageRules?: PackageRule[];
|
2021-02-05 16:55:37 +00:00
|
|
|
postUpdateOptions?: string[];
|
2020-01-06 08:16:15 +00:00
|
|
|
prConcurrentLimit?: number;
|
|
|
|
prHourlyLimit?: number;
|
2020-11-19 10:05:56 +00:00
|
|
|
|
|
|
|
registryUrls?: string[];
|
|
|
|
|
2019-10-04 07:36:07 +00:00
|
|
|
repoIsOnboarded?: boolean;
|
2020-03-02 11:06:16 +00:00
|
|
|
|
|
|
|
updateType?: UpdateType;
|
|
|
|
|
2019-08-23 13:46:31 +00:00
|
|
|
warnings?: ValidationMessage[];
|
2020-03-02 11:06:16 +00:00
|
|
|
vulnerabilityAlerts?: RenovateSharedConfig;
|
2020-03-06 08:07:55 +00:00
|
|
|
regexManagers?: CustomManager[];
|
2020-10-19 08:05:05 +00:00
|
|
|
|
|
|
|
fetchReleaseNotes?: boolean;
|
2021-03-22 14:51:38 +00:00
|
|
|
secrets?: Record<string, string>;
|
2019-08-23 13:46:31 +00:00
|
|
|
}
|
|
|
|
|
2021-06-02 09:25:10 +00:00
|
|
|
export interface AllConfig extends RenovateConfig, GlobalOnlyConfig {}
|
2021-02-05 09:49:34 +00:00
|
|
|
|
2020-05-30 05:15:08 +00:00
|
|
|
export interface AssigneesAndReviewersConfig {
|
|
|
|
assigneesFromCodeOwners?: boolean;
|
|
|
|
assignees?: string[];
|
|
|
|
assigneesSampleSize?: number;
|
|
|
|
reviewersFromCodeOwners?: boolean;
|
|
|
|
reviewers?: string[];
|
|
|
|
reviewersSampleSize?: number;
|
|
|
|
additionalReviewers?: string[];
|
2021-04-22 19:16:58 +00:00
|
|
|
filterUnavailableUsers?: boolean;
|
2020-05-30 05:15:08 +00:00
|
|
|
}
|
|
|
|
|
2019-08-23 13:46:31 +00:00
|
|
|
export type UpdateType =
|
|
|
|
| 'major'
|
|
|
|
| 'minor'
|
|
|
|
| 'patch'
|
|
|
|
| 'pin'
|
|
|
|
| 'digest'
|
|
|
|
| 'lockFileMaintenance'
|
2020-03-02 11:06:16 +00:00
|
|
|
| 'lockfileUpdate'
|
2019-08-23 13:46:31 +00:00
|
|
|
| 'rollback'
|
2021-11-12 08:10:52 +00:00
|
|
|
| 'bump'
|
|
|
|
| 'replacement';
|
2019-08-23 13:46:31 +00:00
|
|
|
|
2020-11-27 05:55:57 +00:00
|
|
|
export type MatchStringsStrategy = 'any' | 'recursive' | 'combination';
|
|
|
|
|
2021-07-29 09:06:55 +00:00
|
|
|
export type MergeStrategy =
|
|
|
|
| 'auto'
|
|
|
|
| 'fast-forward'
|
|
|
|
| 'merge-commit'
|
|
|
|
| 'rebase'
|
|
|
|
| 'squash';
|
|
|
|
|
2019-08-23 13:46:31 +00:00
|
|
|
// TODO: Proper typings
|
|
|
|
export interface PackageRule
|
|
|
|
extends RenovateSharedConfig,
|
|
|
|
UpdateConfig,
|
|
|
|
Record<string, any> {
|
2021-02-19 15:29:50 +00:00
|
|
|
matchFiles?: string[];
|
2021-01-29 10:43:42 +00:00
|
|
|
matchPaths?: string[];
|
|
|
|
matchLanguages?: string[];
|
|
|
|
matchBaseBranches?: string[];
|
|
|
|
matchManagers?: string | string[];
|
|
|
|
matchDatasources?: string[];
|
|
|
|
matchDepTypes?: string[];
|
|
|
|
matchPackageNames?: string[];
|
|
|
|
matchPackagePatterns?: string[];
|
2021-04-03 05:18:25 +00:00
|
|
|
matchPackagePrefixes?: string[];
|
2019-08-23 13:46:31 +00:00
|
|
|
excludePackageNames?: string[];
|
|
|
|
excludePackagePatterns?: string[];
|
2021-04-03 05:18:25 +00:00
|
|
|
excludePackagePrefixes?: string[];
|
2019-08-23 13:46:31 +00:00
|
|
|
matchCurrentVersion?: string | Range;
|
2021-01-29 10:43:42 +00:00
|
|
|
matchSourceUrlPrefixes?: string[];
|
|
|
|
matchUpdateTypes?: UpdateType[];
|
2019-08-23 13:46:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ValidationMessage {
|
2021-04-01 13:50:17 +00:00
|
|
|
topic: string;
|
2019-08-23 13:46:31 +00:00
|
|
|
message: string;
|
|
|
|
}
|
2021-03-02 20:44:55 +00:00
|
|
|
|
|
|
|
export interface RenovateOptionBase {
|
2021-05-19 14:05:29 +00:00
|
|
|
/**
|
|
|
|
* If true, the option can only be configured by people with access to the Renovate instance.
|
|
|
|
* Furthermore, the option should be documented in docs/usage/self-hosted-configuration.md.
|
|
|
|
*/
|
2021-08-15 06:34:54 +00:00
|
|
|
globalOnly?: boolean;
|
2021-03-02 20:44:55 +00:00
|
|
|
|
|
|
|
allowedValues?: string[];
|
|
|
|
|
|
|
|
allowString?: boolean;
|
|
|
|
|
|
|
|
cli?: boolean;
|
|
|
|
|
|
|
|
description: string;
|
|
|
|
|
|
|
|
env?: false | string;
|
|
|
|
|
2021-05-20 10:25:22 +00:00
|
|
|
/**
|
|
|
|
* Do not validate object children
|
|
|
|
*/
|
2021-03-02 20:44:55 +00:00
|
|
|
freeChoice?: boolean;
|
2021-05-20 10:25:22 +00:00
|
|
|
|
2021-03-02 20:44:55 +00:00
|
|
|
mergeable?: boolean;
|
|
|
|
|
|
|
|
autogenerated?: boolean;
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
parent?: 'hostRules' | 'packageRules' | 'postUpgradeTasks' | 'regexManagers';
|
|
|
|
|
|
|
|
// used by tests
|
|
|
|
relatedOptions?: string[];
|
|
|
|
|
|
|
|
releaseStatus?: 'alpha' | 'beta' | 'unpublished';
|
|
|
|
|
|
|
|
stage?: RenovateConfigStage;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateArrayOption<
|
|
|
|
T extends string | number | Record<string, unknown> = Record<string, unknown>
|
|
|
|
> extends RenovateOptionBase {
|
|
|
|
default?: T[];
|
|
|
|
mergeable?: boolean;
|
|
|
|
type: 'array';
|
|
|
|
subType?: 'string' | 'object' | 'number';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateStringArrayOption extends RenovateArrayOption<string> {
|
|
|
|
format?: 'regex';
|
|
|
|
subType: 'string';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateNumberArrayOption extends RenovateArrayOption<number> {
|
|
|
|
subType: 'number';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateBooleanOption extends RenovateOptionBase {
|
|
|
|
default?: boolean;
|
|
|
|
type: 'boolean';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateIntegerOption extends RenovateOptionBase {
|
|
|
|
default?: number;
|
|
|
|
type: 'integer';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateStringOption extends RenovateOptionBase {
|
|
|
|
default?: string;
|
|
|
|
format?: 'regex';
|
|
|
|
|
|
|
|
// Not used
|
|
|
|
replaceLineReturns?: boolean;
|
|
|
|
type: 'string';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RenovateObjectOption extends RenovateOptionBase {
|
|
|
|
default?: any;
|
|
|
|
additionalProperties?: Record<string, unknown> | boolean;
|
|
|
|
mergeable?: boolean;
|
|
|
|
type: 'object';
|
2021-11-03 05:48:10 +00:00
|
|
|
supportedManagers?: string[] | 'all';
|
|
|
|
supportedPlatforms?: string[] | 'all';
|
2021-03-02 20:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type RenovateOptions =
|
|
|
|
| RenovateStringOption
|
|
|
|
| RenovateNumberArrayOption
|
|
|
|
| RenovateStringArrayOption
|
|
|
|
| RenovateIntegerOption
|
|
|
|
| RenovateBooleanOption
|
|
|
|
| RenovateArrayOption
|
|
|
|
| RenovateObjectOption;
|
2021-04-19 15:03:04 +00:00
|
|
|
|
|
|
|
export interface PackageRuleInputConfig extends Record<string, unknown> {
|
|
|
|
versioning?: string;
|
|
|
|
packageFile?: string;
|
|
|
|
depType?: string;
|
|
|
|
depTypes?: string[];
|
|
|
|
depName?: string;
|
|
|
|
currentValue?: string;
|
|
|
|
currentVersion?: string;
|
|
|
|
lockedVersion?: string;
|
|
|
|
updateType?: UpdateType;
|
|
|
|
isBump?: boolean;
|
|
|
|
sourceUrl?: string;
|
|
|
|
language?: string;
|
|
|
|
baseBranch?: string;
|
|
|
|
manager?: string;
|
|
|
|
datasource?: string;
|
|
|
|
packageRules?: (PackageRule & PackageRuleInputConfig)[];
|
|
|
|
}
|
2021-04-20 08:52:57 +00:00
|
|
|
|
2021-05-11 10:51:21 +00:00
|
|
|
export interface MigratedConfig {
|
|
|
|
isMigrated: boolean;
|
|
|
|
migratedConfig: RenovateConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MigratedRenovateConfig extends RenovateConfig {
|
|
|
|
endpoints?: HostRule[];
|
|
|
|
pathRules: PackageRule[];
|
|
|
|
packages: PackageRule[];
|
|
|
|
|
|
|
|
node?: RenovateConfig;
|
|
|
|
travis?: RenovateConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ValidationResult {
|
|
|
|
errors: ValidationMessage[];
|
|
|
|
warnings: ValidationMessage[];
|
|
|
|
}
|