renovate 44.231.0 → 44.232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/migrations/custom/dependency-dashboard-migration.js +38 -0
- package/dist/config/migrations/custom/dependency-dashboard-migration.js.map +1 -0
- package/dist/config/migrations/migrations-service.js +3 -1
- package/dist/config/migrations/migrations-service.js.map +1 -1
- package/dist/config/options/index.js +80 -59
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/internal/default.preset.js +2 -2
- package/dist/config/presets/internal/default.preset.js.map +1 -1
- package/dist/config/types.d.ts +13 -10
- package/dist/config/types.js +1 -0
- package/dist/config/types.js.map +1 -1
- package/dist/config/validation.js +2 -1
- package/dist/config/validation.js.map +1 -1
- package/dist/workers/global/config/parse/cli.js +1 -1
- package/dist/workers/global/config/parse/cli.js.map +1 -1
- package/dist/workers/global/config/parse/env.js +26 -11
- package/dist/workers/global/config/parse/env.js.map +1 -1
- package/dist/workers/repository/dependency-dashboard.js +21 -19
- package/dist/workers/repository/dependency-dashboard.js.map +1 -1
- package/dist/workers/repository/update/pr/body/index.js +1 -1
- package/dist/workers/repository/update/pr/body/index.js.map +1 -1
- package/package.json +1 -1
- package/renovate-schema.json +118 -91
|
@@ -95,7 +95,7 @@ const presets = {
|
|
|
95
95
|
description: "Enable Renovate configuration migration PRs when needed."
|
|
96
96
|
},
|
|
97
97
|
dependencyDashboard: {
|
|
98
|
-
dependencyDashboard: true,
|
|
98
|
+
dependencyDashboard: { enabled: true },
|
|
99
99
|
description: "Enable Renovate Dependency Dashboard creation."
|
|
100
100
|
},
|
|
101
101
|
dependencyDashboardApproval: {
|
|
@@ -103,7 +103,7 @@ const presets = {
|
|
|
103
103
|
description: "Enable Renovate Dependency Dashboard approval workflow."
|
|
104
104
|
},
|
|
105
105
|
disableDependencyDashboard: {
|
|
106
|
-
dependencyDashboard: false,
|
|
106
|
+
dependencyDashboard: { enabled: false },
|
|
107
107
|
description: "Disable Renovate Dependency Dashboard creation."
|
|
108
108
|
},
|
|
109
109
|
disableDevDependencies: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.preset.js","names":[],"sources":["../../../../lib/config/presets/internal/default.preset.ts"],"sourcesContent":["import type { Preset } from '../types.ts';\n\nexport const presets: Record<string, Preset> = {\n approveMajorUpdates: {\n description: 'Require Dependency Dashboard approval for `major` updates.',\n packageRules: [\n {\n dependencyDashboardApproval: true,\n matchUpdateTypes: ['major'],\n },\n ],\n },\n assignAndReview: {\n description: 'Set `{{arg0}}` as assignee and reviewer of PRs.',\n extends: [':assignee({{arg0}})', ':reviewer({{arg0}})'],\n },\n assignee: {\n assignees: ['{{arg0}}'],\n description: 'Assign PRs to `{{arg0}}`.',\n },\n automergeAll: {\n automerge: true,\n description:\n 'Automerge all upgrades (including `major`) if they pass tests.',\n },\n automergeBranch: {\n automergeType: 'branch',\n description:\n 'If automerging, push the new commit directly to the base branch (no PR).',\n },\n automergeDigest: {\n description: 'Automerge `digest` upgrades if they pass tests.',\n digest: {\n automerge: true,\n },\n },\n automergeDisabled: {\n automerge: false,\n description:\n 'Disable automerging feature - wait for humans to merge all PRs.',\n },\n automergeLinters: {\n description: 'Update lint packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n extends: ['packages:linters'],\n },\n ],\n },\n automergeMajor: {\n automerge: true,\n description:\n 'Automerge all upgrades (including `major`) if they pass tests.',\n },\n automergeMinor: {\n description: 'Automerge `patch` and `minor` upgrades if they pass tests.',\n lockFileMaintenance: {\n automerge: true,\n },\n minor: {\n automerge: true,\n },\n patch: {\n automerge: true,\n },\n pin: {\n automerge: true,\n },\n },\n automergePatch: {\n description: 'Automerge `patch` upgrades if they pass tests.',\n lockFileMaintenance: {\n automerge: true,\n },\n patch: {\n automerge: true,\n },\n pin: {\n automerge: true,\n },\n separateMinorPatch: true,\n },\n automergePr: {\n automergeType: 'pr',\n description: 'Raise a PR first before any automerging.',\n },\n automergeRequireAllStatusChecks: {\n description: 'Require all status checks to pass before any automerging.',\n ignoreTests: false,\n },\n automergeStableNonMajor: {\n description:\n 'Automerge non-major upgrades for semver stable packages if they pass tests.',\n packageRules: [\n {\n automerge: true,\n matchCurrentVersion: '!/^0/',\n matchUpdateTypes: ['minor', 'patch'],\n },\n ],\n },\n automergeTesters: {\n description: 'Update testing packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n extends: ['packages:test'],\n },\n ],\n },\n automergeTypes: {\n description: 'Update `@types/*` packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n matchPackageNames: ['@types/**'],\n },\n ],\n },\n combinePatchMinorReleases: {\n description:\n 'Do not separate `patch` and `minor` upgrades into separate PRs for the same dependency.',\n separateMinorPatch: false,\n },\n configMigration: {\n configMigration: true,\n description: 'Enable Renovate configuration migration PRs when needed.',\n },\n dependencyDashboard: {\n dependencyDashboard: true,\n description: 'Enable Renovate Dependency Dashboard creation.',\n },\n dependencyDashboardApproval: {\n dependencyDashboardApproval: true,\n description: 'Enable Renovate Dependency Dashboard approval workflow.',\n },\n disableDependencyDashboard: {\n dependencyDashboard: false,\n description: 'Disable Renovate Dependency Dashboard creation.',\n },\n disableDevDependencies: {\n description: 'Do not update development dependencies.',\n packageRules: [\n {\n enabled: false,\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n },\n ],\n },\n disableDigestUpdates: {\n description: 'Disable `digest` and Git hash updates.',\n digest: {\n enabled: false,\n },\n },\n disableDomain: {\n description: 'Disable requests to a particular domain.',\n hostRules: [\n {\n enabled: false,\n matchHost: '{{arg0}}',\n },\n ],\n },\n disableHost: {\n description: 'Disable requests to a particular host.',\n hostRules: [\n {\n enabled: false,\n matchHost: 'https://{{arg0}}',\n },\n ],\n },\n disableMajorUpdates: {\n description: 'Disable `major` updates.',\n major: {\n enabled: false,\n },\n },\n disablePeerDependencies: {\n description: 'Do not update `peerDependencies` versions/ranges.',\n packageRules: [\n {\n enabled: false,\n matchDepTypes: ['peerDependencies'],\n },\n ],\n },\n disablePrControls: {\n description: 'Remove the checkbox controls from PRs.',\n prBodyTemplate:\n '{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{configDescription}}}{{{footer}}}',\n },\n disableRateLimiting: {\n commitHourlyLimit: 0,\n description: 'Remove hourly and concurrent rate limits.',\n prConcurrentLimit: 0,\n prHourlyLimit: 0,\n },\n disableRenovate: {\n description: 'Disable Renovate.',\n enabled: false,\n },\n disableVulnerabilityAlerts: {\n description: 'Disable vulnerability alerts completely.',\n vulnerabilityAlerts: {\n enabled: false,\n },\n },\n docker: {\n description: 'Keep Dockerfile `FROM` sources updated.',\n 'docker-compose': {\n enabled: true,\n },\n dockerfile: {\n enabled: true,\n },\n },\n doNotPinPackage: {\n description: 'Disable version pinning for `{{arg0}}`.',\n packageRules: [\n {\n matchPackageNames: ['{{arg0}}'],\n rangeStrategy: 'replace',\n },\n ],\n },\n enablePreCommit: {\n description: 'Enable the pre-commit manager.',\n 'pre-commit': {\n enabled: true,\n },\n },\n enableRenovate: {\n description: 'Enable Renovate.',\n enabled: true,\n },\n enableVulnerabilityAlerts: {\n description: 'Raise PR when vulnerability alerts are detected.',\n vulnerabilityAlerts: {\n enabled: true,\n },\n },\n enableVulnerabilityAlertsWithAdditionalLabel: {\n description:\n 'Raise PR when vulnerability alerts are detected with label `{{arg0}}`, in addition to any existing list of PR labels.',\n vulnerabilityAlerts: {\n addLabels: ['{{arg0}}'],\n enabled: true,\n },\n },\n enableVulnerabilityAlertsWithLabel: {\n description:\n 'Raise PR when vulnerability alerts are detected with label `{{arg0}}`, replacing any existing list of PR labels.',\n vulnerabilityAlerts: {\n enabled: true,\n labels: ['{{arg0}}'],\n },\n },\n followTag: {\n description:\n 'For package `{{arg0}}`, strictly follow release tag `{{arg1}}`.',\n packageRules: [\n {\n followTag: '{{arg1}}',\n matchPackageNames: ['{{arg0}}'],\n },\n ],\n },\n githubComToken: {\n description:\n 'Use provided token for `github.com` lookups. Do not configure this if you are already running on `github.com`.',\n hostRules: [\n {\n encrypted: {\n token: '{{arg0}}',\n },\n hostType: 'github',\n matchHost: 'github.com',\n },\n ],\n },\n gitSignOff: {\n commitTrailers: ['Signed-off-by: {{{gitAuthor}}}'],\n description: 'Append `Signed-off-by:` to signoff Git commits.',\n },\n gomod: {\n description: 'Enable Go modules support.',\n gomod: {\n enabled: true,\n },\n },\n group: {\n description: 'Group `{{arg1}}` packages into same branch/PR.',\n packageRules: [\n {\n extends: ['{{arg0}}'],\n groupName: '{{arg1}}',\n },\n ],\n },\n ignoreModulesAndTests: {\n description:\n 'Ignore `node_modules`, `bower_components`, `vendor` and various test/tests (except for nuget) directories.',\n ignorePaths: [\n '**/node_modules/**',\n '**/bower_components/**',\n '**/vendor/**',\n '**/examples/**',\n '**/__tests__/**',\n '**/test/**',\n '**/tests/**',\n '**/__fixtures__/**',\n ],\n nuget: {\n ignorePaths: [\n '**/node_modules/**',\n '**/bower_components/**',\n '**/vendor/**',\n '**/examples/**',\n '**/__fixtures__/**',\n ],\n },\n },\n ignoreUnstable: {\n description:\n 'Upgrade to unstable versions only if the existing version is unstable.',\n ignoreUnstable: true,\n },\n includeNodeModules: {\n description:\n 'Include `package.json` files found within `node_modules` folders or `bower_components`.',\n ignorePaths: [],\n },\n label: {\n description: 'Apply label `{{arg0}}` to PRs.',\n labels: ['{{arg0}}'],\n },\n labels: {\n description: 'Apply labels `{{arg0}}` and `{{arg1}}` to PRs.',\n labels: ['{{arg0}}', '{{arg1}}'],\n },\n maintainLockFilesDisabled: {\n description:\n 'Update existing lock files only when `package.json` is modified.',\n lockFileMaintenance: {\n enabled: false,\n },\n },\n maintainLockFilesMonthly: {\n description:\n 'Run lock file maintenance (updates) on the first day of each month.',\n lockFileMaintenance: {\n enabled: true,\n extends: ['schedule:monthly'],\n },\n },\n maintainLockFilesWeekly: {\n description: 'Run lock file maintenance (updates) early Monday mornings.',\n lockFileMaintenance: {\n enabled: true,\n extends: ['schedule:weekly'],\n },\n },\n meteor: {\n description: 'Keep Meteor Npm.depends packages updated.',\n meteor: {\n enabled: true,\n },\n },\n noUnscheduledUpdates: {\n description: 'Only update branches when scheduled.',\n updateNotScheduled: false,\n },\n npm: {\n description: 'Keep `package.json` npm dependencies updated.',\n npm: {\n enabled: true,\n },\n },\n pathSemanticCommitType: {\n description:\n 'Use semanticCommitType `{{arg1}}` for all package files matching path `{{arg0}}`.',\n packageRules: [\n {\n matchFileNames: ['{{arg0}}'],\n semanticCommitType: '{{arg1}}',\n },\n ],\n },\n pinAllExceptPeerDependencies: {\n description: 'Pin all dependency versions except `peerDependencies`.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n rangeStrategy: 'pin',\n },\n {\n matchDepTypes: ['engines', 'peerDependencies'],\n rangeStrategy: 'auto',\n },\n ],\n },\n pinDependencies: {\n description:\n 'Pin dependency versions where `depType=dependencies`. Usually applies only to non-dev dependencies in `package.json`.',\n packageRules: [\n {\n matchDepTypes: ['dependencies'],\n rangeStrategy: 'pin',\n },\n ],\n },\n pinDevDependencies: {\n description: 'Pin dependency versions for development dependencies.',\n packageRules: [\n {\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n rangeStrategy: 'pin',\n },\n ],\n },\n pinDigestsDisabled: {\n description: `Disable pinning of dependency digests.\n\nNote: This preset does not revert the digest pinning set from within the packageRules, when set at root level or via extends).\nSee [Docker - Disable digest pinning](./docker.md#disable-digest-pinning) for more details.`,\n pinDigests: false,\n },\n pinOnlyDevDependencies: {\n description:\n 'Pin dependency versions for development dependencies and retain SemVer ranges for others.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n rangeStrategy: 'replace',\n },\n {\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n rangeStrategy: 'pin',\n },\n {\n matchDepTypes: ['peerDependencies'],\n rangeStrategy: 'widen',\n },\n ],\n },\n pinSkipCi: {\n description: 'Add `[skip ci]` to commit message body whenever pinning.',\n pin: {\n commitBody: '[skip ci]',\n },\n },\n pinVersions: {\n description:\n 'Use version pinning (maintain a single version only and not SemVer ranges).',\n rangeStrategy: 'pin',\n },\n prConcurrentLimit10: {\n description: 'Limit to maximum 10 open PRs at any time.',\n prConcurrentLimit: 10,\n },\n prConcurrentLimit20: {\n description: 'Limit to maximum 20 open PRs at any time.',\n prConcurrentLimit: 20,\n },\n prConcurrentLimitNone: {\n description: 'Remove limit for open PRs at any time.',\n prConcurrentLimit: 0,\n },\n preserveSemverRanges: {\n description:\n 'Preserve (but continue to upgrade) any existing SemVer ranges.',\n packageRules: [{ matchPackageNames: ['*'], rangeStrategy: 'replace' }],\n },\n prHourlyLimit1: {\n description: 'Rate limit PR creation to a maximum of one per hour.',\n prHourlyLimit: 1,\n },\n prHourlyLimit2: {\n description: 'Rate limit PR creation to a maximum of two per hour.',\n prHourlyLimit: 2,\n },\n prHourlyLimit4: {\n description: 'Rate limit PR creation to a maximum of four per hour.',\n prHourlyLimit: 4,\n },\n prHourlyLimitNone: {\n description: 'Removes rate limit for PR creation per hour.',\n prHourlyLimit: 0,\n },\n prImmediately: {\n description: 'Raise PRs immediately (after branch is created).',\n prCreation: 'immediate',\n },\n prNotPending: {\n description:\n 'Wait for branch tests to pass or fail before creating the PR.',\n prCreation: 'not-pending',\n },\n rebaseStalePrs: {\n description:\n 'Rebase existing PRs any time the base branch has been updated.',\n rebaseWhen: 'behind-base-branch',\n },\n renovatePrefix: {\n branchPrefix: 'renovate/',\n description: 'Add the `renovate/` prefix to all branch names.',\n },\n respectLatest: {\n description: 'Upgrade versions up to the \"latest\" tag in the npm registry.',\n respectLatest: true,\n },\n reviewer: {\n description: 'Add `{{arg0}}` as reviewer for PRs.',\n reviewers: ['{{arg0}}'],\n },\n semanticCommits: {\n description: 'Use semantic prefixes for commit messages and PR titles.',\n semanticCommits: 'enabled',\n },\n semanticCommitScope: {\n description:\n 'Use semantic commit scope `{{arg0}}` for all commits and PR titles.',\n semanticCommitScope: '{{arg0}}',\n },\n semanticCommitScopeDisabled: {\n description: 'Disable semantic commit scope for all commits and PR titles.',\n semanticCommitScope: null,\n },\n semanticCommitsDisabled: {\n description: 'Disable semantic prefixes for commit messages and PR titles.',\n semanticCommits: 'disabled',\n },\n semanticCommitType: {\n description:\n 'Use `{{arg0}}` as semantic commit type for commit messages and PR titles.',\n semanticCommitType: '{{arg0}}',\n },\n semanticCommitTypeAll: {\n description:\n 'If Renovate detects semantic commits, it will use semantic commit type `{{arg0}}` for all commits.',\n packageRules: [\n {\n matchFileNames: ['**/*'],\n semanticCommitType: '{{arg0}}',\n },\n ],\n },\n semanticPrefixChore: {\n description:\n 'Use `chore` as semantic commit type for commit messages and PR titles.',\n extends: [':semanticCommitType(chore)'],\n },\n semanticPrefixFix: {\n description:\n 'Use `fix` as semantic commit type for commit messages and PR titles.',\n extends: [':semanticCommitType(fix)'],\n },\n semanticPrefixFixDepsChoreOthers: {\n description:\n 'Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n semanticCommitType: 'chore',\n },\n {\n matchDepTypes: ['dependencies', 'require'],\n semanticCommitType: 'fix',\n },\n {\n matchDatasources: ['maven'],\n matchDepTypes: [\n 'compile',\n 'provided',\n 'runtime',\n 'system',\n 'import',\n 'parent',\n ],\n semanticCommitType: 'fix',\n },\n {\n matchDepTypes: [\n 'project.dependencies',\n 'project.optional-dependencies',\n ],\n matchManagers: ['pep621', 'poetry'],\n semanticCommitType: 'fix',\n },\n {\n matchDepTypes: ['dependencies', 'extras'],\n matchManagers: ['poetry'],\n semanticCommitType: 'fix',\n },\n {\n matchJsonata: ['isLockfileUpdate = true'],\n semanticCommitType: 'chore',\n },\n ],\n },\n separateMajorReleases: {\n description:\n 'Separate `major` versions of dependencies into individual branches/PRs.',\n separateMajorMinor: true,\n },\n separateMultipleMajorReleases: {\n description:\n 'Separate each `major` version of dependencies into individual branches/PRs.',\n separateMajorMinor: true,\n separateMultipleMajor: true,\n },\n separateMultipleMinorReleases: {\n description:\n 'Separate each `minor` version of dependencies into individual branches/PRs.',\n separateMultipleMinor: true,\n },\n separatePatchReleases: {\n description:\n 'Separate `patch` and `minor` releases of dependencies into separate PRs.',\n separateMinorPatch: true,\n },\n skipArtifactsUpdate: {\n description: 'Skips artifact updates.',\n skipArtifactsUpdate: true,\n },\n skipStatusChecks: {\n description: 'Skip status checks and automerge right away.',\n ignoreTests: true,\n },\n timezone: {\n description: 'Evaluate schedules according to timezone `{{arg0}}`.',\n timezone: '{{arg0}}',\n },\n updateNotScheduled: {\n description: 'Keep existing branches updated even when not scheduled.',\n updateNotScheduled: true,\n },\n widenPeerDependencies: {\n description:\n 'Always widen `peerDependencies` SemVer ranges when updating, instead of replacing.',\n packageRules: [\n {\n matchDepTypes: ['peerDependencies'],\n rangeStrategy: 'widen',\n },\n ],\n },\n};\n"],"mappings":";AAEA,MAAa,UAAkC;CAC7C,qBAAqB;EACnB,aAAa;EACb,cAAc,CACZ;GACE,6BAA6B;GAC7B,kBAAkB,CAAC,OAAO;EAC5B,CACF;CACF;CACA,iBAAiB;EACf,aAAa;EACb,SAAS,CAAC,uBAAuB,qBAAqB;CACxD;CACA,UAAU;EACR,WAAW,CAAC,UAAU;EACtB,aAAa;CACf;CACA,cAAc;EACZ,WAAW;EACX,aACE;CACJ;CACA,iBAAiB;EACf,eAAe;EACf,aACE;CACJ;CACA,iBAAiB;EACf,aAAa;EACb,QAAQ,EACN,WAAW,KACb;CACF;CACA,mBAAmB;EACjB,WAAW;EACX,aACE;CACJ;CACA,kBAAkB;EAChB,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,SAAS,CAAC,kBAAkB;EAC9B,CACF;CACF;CACA,gBAAgB;EACd,WAAW;EACX,aACE;CACJ;CACA,gBAAgB;EACd,aAAa;EACb,qBAAqB,EACnB,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,KAAK,EACH,WAAW,KACb;CACF;CACA,gBAAgB;EACd,aAAa;EACb,qBAAqB,EACnB,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,KAAK,EACH,WAAW,KACb;EACA,oBAAoB;CACtB;CACA,aAAa;EACX,eAAe;EACf,aAAa;CACf;CACA,iCAAiC;EAC/B,aAAa;EACb,aAAa;CACf;CACA,yBAAyB;EACvB,aACE;EACF,cAAc,CACZ;GACE,WAAW;GACX,qBAAqB;GACrB,kBAAkB,CAAC,SAAS,OAAO;EACrC,CACF;CACF;CACA,kBAAkB;EAChB,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,SAAS,CAAC,eAAe;EAC3B,CACF;CACF;CACA,gBAAgB;EACd,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,mBAAmB,CAAC,WAAW;EACjC,CACF;CACF;CACA,2BAA2B;EACzB,aACE;EACF,oBAAoB;CACtB;CACA,iBAAiB;EACf,iBAAiB;EACjB,aAAa;CACf;CACA,qBAAqB;EACnB,qBAAqB;EACrB,aAAa;CACf;CACA,6BAA6B;EAC3B,6BAA6B;EAC7B,aAAa;CACf;CACA,4BAA4B;EAC1B,qBAAqB;EACrB,aAAa;CACf;CACA,wBAAwB;EACtB,aAAa;EACb,cAAc,CACZ;GACE,SAAS;GACT,eAAe;IAAC;IAAmB;IAAoB;GAAK;EAC9D,CACF;CACF;CACA,sBAAsB;EACpB,aAAa;EACb,QAAQ,EACN,SAAS,MACX;CACF;CACA,eAAe;EACb,aAAa;EACb,WAAW,CACT;GACE,SAAS;GACT,WAAW;EACb,CACF;CACF;CACA,aAAa;EACX,aAAa;EACb,WAAW,CACT;GACE,SAAS;GACT,WAAW;EACb,CACF;CACF;CACA,qBAAqB;EACnB,aAAa;EACb,OAAO,EACL,SAAS,MACX;CACF;CACA,yBAAyB;EACvB,aAAa;EACb,cAAc,CACZ;GACE,SAAS;GACT,eAAe,CAAC,kBAAkB;EACpC,CACF;CACF;CACA,mBAAmB;EACjB,aAAa;EACb,gBACE;CACJ;CACA,qBAAqB;EACnB,mBAAmB;EACnB,aAAa;EACb,mBAAmB;EACnB,eAAe;CACjB;CACA,iBAAiB;EACf,aAAa;EACb,SAAS;CACX;CACA,4BAA4B;EAC1B,aAAa;EACb,qBAAqB,EACnB,SAAS,MACX;CACF;CACA,QAAQ;EACN,aAAa;EACb,kBAAkB,EAChB,SAAS,KACX;EACA,YAAY,EACV,SAAS,KACX;CACF;CACA,iBAAiB;EACf,aAAa;EACb,cAAc,CACZ;GACE,mBAAmB,CAAC,UAAU;GAC9B,eAAe;EACjB,CACF;CACF;CACA,iBAAiB;EACf,aAAa;EACb,cAAc,EACZ,SAAS,KACX;CACF;CACA,gBAAgB;EACd,aAAa;EACb,SAAS;CACX;CACA,2BAA2B;EACzB,aAAa;EACb,qBAAqB,EACnB,SAAS,KACX;CACF;CACA,8CAA8C;EAC5C,aACE;EACF,qBAAqB;GACnB,WAAW,CAAC,UAAU;GACtB,SAAS;EACX;CACF;CACA,oCAAoC;EAClC,aACE;EACF,qBAAqB;GACnB,SAAS;GACT,QAAQ,CAAC,UAAU;EACrB;CACF;CACA,WAAW;EACT,aACE;EACF,cAAc,CACZ;GACE,WAAW;GACX,mBAAmB,CAAC,UAAU;EAChC,CACF;CACF;CACA,gBAAgB;EACd,aACE;EACF,WAAW,CACT;GACE,WAAW,EACT,OAAO,WACT;GACA,UAAU;GACV,WAAW;EACb,CACF;CACF;CACA,YAAY;EACV,gBAAgB,CAAC,gCAAgC;EACjD,aAAa;CACf;CACA,OAAO;EACL,aAAa;EACb,OAAO,EACL,SAAS,KACX;CACF;CACA,OAAO;EACL,aAAa;EACb,cAAc,CACZ;GACE,SAAS,CAAC,UAAU;GACpB,WAAW;EACb,CACF;CACF;CACA,uBAAuB;EACrB,aACE;EACF,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EACA,OAAO,EACL,aAAa;GACX;GACA;GACA;GACA;GACA;EACF,EACF;CACF;CACA,gBAAgB;EACd,aACE;EACF,gBAAgB;CAClB;CACA,oBAAoB;EAClB,aACE;EACF,aAAa,CAAC;CAChB;CACA,OAAO;EACL,aAAa;EACb,QAAQ,CAAC,UAAU;CACrB;CACA,QAAQ;EACN,aAAa;EACb,QAAQ,CAAC,YAAY,UAAU;CACjC;CACA,2BAA2B;EACzB,aACE;EACF,qBAAqB,EACnB,SAAS,MACX;CACF;CACA,0BAA0B;EACxB,aACE;EACF,qBAAqB;GACnB,SAAS;GACT,SAAS,CAAC,kBAAkB;EAC9B;CACF;CACA,yBAAyB;EACvB,aAAa;EACb,qBAAqB;GACnB,SAAS;GACT,SAAS,CAAC,iBAAiB;EAC7B;CACF;CACA,QAAQ;EACN,aAAa;EACb,QAAQ,EACN,SAAS,KACX;CACF;CACA,sBAAsB;EACpB,aAAa;EACb,oBAAoB;CACtB;CACA,KAAK;EACH,aAAa;EACb,KAAK,EACH,SAAS,KACX;CACF;CACA,wBAAwB;EACtB,aACE;EACF,cAAc,CACZ;GACE,gBAAgB,CAAC,UAAU;GAC3B,oBAAoB;EACtB,CACF;CACF;CACA,8BAA8B;EAC5B,aAAa;EACb,cAAc,CACZ;GACE,mBAAmB,CAAC,GAAG;GACvB,eAAe;EACjB,GACA;GACE,eAAe,CAAC,WAAW,kBAAkB;GAC7C,eAAe;EACjB,CACF;CACF;CACA,iBAAiB;EACf,aACE;EACF,cAAc,CACZ;GACE,eAAe,CAAC,cAAc;GAC9B,eAAe;EACjB,CACF;CACF;CACA,oBAAoB;EAClB,aAAa;EACb,cAAc,CACZ;GACE,eAAe;IAAC;IAAmB;IAAoB;GAAK;GAC5D,eAAe;EACjB,CACF;CACF;CACA,oBAAoB;EAClB,aAAa;;;;EAIb,YAAY;CACd;CACA,wBAAwB;EACtB,aACE;EACF,cAAc;GACZ;IACE,mBAAmB,CAAC,GAAG;IACvB,eAAe;GACjB;GACA;IACE,eAAe;KAAC;KAAmB;KAAoB;IAAK;IAC5D,eAAe;GACjB;GACA;IACE,eAAe,CAAC,kBAAkB;IAClC,eAAe;GACjB;EACF;CACF;CACA,WAAW;EACT,aAAa;EACb,KAAK,EACH,YAAY,YACd;CACF;CACA,aAAa;EACX,aACE;EACF,eAAe;CACjB;CACA,qBAAqB;EACnB,aAAa;EACb,mBAAmB;CACrB;CACA,qBAAqB;EACnB,aAAa;EACb,mBAAmB;CACrB;CACA,uBAAuB;EACrB,aAAa;EACb,mBAAmB;CACrB;CACA,sBAAsB;EACpB,aACE;EACF,cAAc,CAAC;GAAE,mBAAmB,CAAC,GAAG;GAAG,eAAe;EAAU,CAAC;CACvE;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,mBAAmB;EACjB,aAAa;EACb,eAAe;CACjB;CACA,eAAe;EACb,aAAa;EACb,YAAY;CACd;CACA,cAAc;EACZ,aACE;EACF,YAAY;CACd;CACA,gBAAgB;EACd,aACE;EACF,YAAY;CACd;CACA,gBAAgB;EACd,cAAc;EACd,aAAa;CACf;CACA,eAAe;EACb,aAAa;EACb,eAAe;CACjB;CACA,UAAU;EACR,aAAa;EACb,WAAW,CAAC,UAAU;CACxB;CACA,iBAAiB;EACf,aAAa;EACb,iBAAiB;CACnB;CACA,qBAAqB;EACnB,aACE;EACF,qBAAqB;CACvB;CACA,6BAA6B;EAC3B,aAAa;EACb,qBAAqB;CACvB;CACA,yBAAyB;EACvB,aAAa;EACb,iBAAiB;CACnB;CACA,oBAAoB;EAClB,aACE;EACF,oBAAoB;CACtB;CACA,uBAAuB;EACrB,aACE;EACF,cAAc,CACZ;GACE,gBAAgB,CAAC,MAAM;GACvB,oBAAoB;EACtB,CACF;CACF;CACA,qBAAqB;EACnB,aACE;EACF,SAAS,CAAC,4BAA4B;CACxC;CACA,mBAAmB;EACjB,aACE;EACF,SAAS,CAAC,0BAA0B;CACtC;CACA,kCAAkC;EAChC,aACE;EACF,cAAc;GACZ;IACE,mBAAmB,CAAC,GAAG;IACvB,oBAAoB;GACtB;GACA;IACE,eAAe,CAAC,gBAAgB,SAAS;IACzC,oBAAoB;GACtB;GACA;IACE,kBAAkB,CAAC,OAAO;IAC1B,eAAe;KACb;KACA;KACA;KACA;KACA;KACA;IACF;IACA,oBAAoB;GACtB;GACA;IACE,eAAe,CACb,wBACA,+BACF;IACA,eAAe,CAAC,UAAU,QAAQ;IAClC,oBAAoB;GACtB;GACA;IACE,eAAe,CAAC,gBAAgB,QAAQ;IACxC,eAAe,CAAC,QAAQ;IACxB,oBAAoB;GACtB;GACA;IACE,cAAc,CAAC,yBAAyB;IACxC,oBAAoB;GACtB;EACF;CACF;CACA,uBAAuB;EACrB,aACE;EACF,oBAAoB;CACtB;CACA,+BAA+B;EAC7B,aACE;EACF,oBAAoB;EACpB,uBAAuB;CACzB;CACA,+BAA+B;EAC7B,aACE;EACF,uBAAuB;CACzB;CACA,uBAAuB;EACrB,aACE;EACF,oBAAoB;CACtB;CACA,qBAAqB;EACnB,aAAa;EACb,qBAAqB;CACvB;CACA,kBAAkB;EAChB,aAAa;EACb,aAAa;CACf;CACA,UAAU;EACR,aAAa;EACb,UAAU;CACZ;CACA,oBAAoB;EAClB,aAAa;EACb,oBAAoB;CACtB;CACA,uBAAuB;EACrB,aACE;EACF,cAAc,CACZ;GACE,eAAe,CAAC,kBAAkB;GAClC,eAAe;EACjB,CACF;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"default.preset.js","names":[],"sources":["../../../../lib/config/presets/internal/default.preset.ts"],"sourcesContent":["import type { Preset } from '../types.ts';\n\nexport const presets: Record<string, Preset> = {\n approveMajorUpdates: {\n description: 'Require Dependency Dashboard approval for `major` updates.',\n packageRules: [\n {\n dependencyDashboardApproval: true,\n matchUpdateTypes: ['major'],\n },\n ],\n },\n assignAndReview: {\n description: 'Set `{{arg0}}` as assignee and reviewer of PRs.',\n extends: [':assignee({{arg0}})', ':reviewer({{arg0}})'],\n },\n assignee: {\n assignees: ['{{arg0}}'],\n description: 'Assign PRs to `{{arg0}}`.',\n },\n automergeAll: {\n automerge: true,\n description:\n 'Automerge all upgrades (including `major`) if they pass tests.',\n },\n automergeBranch: {\n automergeType: 'branch',\n description:\n 'If automerging, push the new commit directly to the base branch (no PR).',\n },\n automergeDigest: {\n description: 'Automerge `digest` upgrades if they pass tests.',\n digest: {\n automerge: true,\n },\n },\n automergeDisabled: {\n automerge: false,\n description:\n 'Disable automerging feature - wait for humans to merge all PRs.',\n },\n automergeLinters: {\n description: 'Update lint packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n extends: ['packages:linters'],\n },\n ],\n },\n automergeMajor: {\n automerge: true,\n description:\n 'Automerge all upgrades (including `major`) if they pass tests.',\n },\n automergeMinor: {\n description: 'Automerge `patch` and `minor` upgrades if they pass tests.',\n lockFileMaintenance: {\n automerge: true,\n },\n minor: {\n automerge: true,\n },\n patch: {\n automerge: true,\n },\n pin: {\n automerge: true,\n },\n },\n automergePatch: {\n description: 'Automerge `patch` upgrades if they pass tests.',\n lockFileMaintenance: {\n automerge: true,\n },\n patch: {\n automerge: true,\n },\n pin: {\n automerge: true,\n },\n separateMinorPatch: true,\n },\n automergePr: {\n automergeType: 'pr',\n description: 'Raise a PR first before any automerging.',\n },\n automergeRequireAllStatusChecks: {\n description: 'Require all status checks to pass before any automerging.',\n ignoreTests: false,\n },\n automergeStableNonMajor: {\n description:\n 'Automerge non-major upgrades for semver stable packages if they pass tests.',\n packageRules: [\n {\n automerge: true,\n matchCurrentVersion: '!/^0/',\n matchUpdateTypes: ['minor', 'patch'],\n },\n ],\n },\n automergeTesters: {\n description: 'Update testing packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n extends: ['packages:test'],\n },\n ],\n },\n automergeTypes: {\n description: 'Update `@types/*` packages automatically if tests pass.',\n packageRules: [\n {\n automerge: true,\n matchPackageNames: ['@types/**'],\n },\n ],\n },\n combinePatchMinorReleases: {\n description:\n 'Do not separate `patch` and `minor` upgrades into separate PRs for the same dependency.',\n separateMinorPatch: false,\n },\n configMigration: {\n configMigration: true,\n description: 'Enable Renovate configuration migration PRs when needed.',\n },\n dependencyDashboard: {\n dependencyDashboard: { enabled: true },\n description: 'Enable Renovate Dependency Dashboard creation.',\n },\n dependencyDashboardApproval: {\n dependencyDashboardApproval: true,\n description: 'Enable Renovate Dependency Dashboard approval workflow.',\n },\n disableDependencyDashboard: {\n dependencyDashboard: { enabled: false },\n description: 'Disable Renovate Dependency Dashboard creation.',\n },\n disableDevDependencies: {\n description: 'Do not update development dependencies.',\n packageRules: [\n {\n enabled: false,\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n },\n ],\n },\n disableDigestUpdates: {\n description: 'Disable `digest` and Git hash updates.',\n digest: {\n enabled: false,\n },\n },\n disableDomain: {\n description: 'Disable requests to a particular domain.',\n hostRules: [\n {\n enabled: false,\n matchHost: '{{arg0}}',\n },\n ],\n },\n disableHost: {\n description: 'Disable requests to a particular host.',\n hostRules: [\n {\n enabled: false,\n matchHost: 'https://{{arg0}}',\n },\n ],\n },\n disableMajorUpdates: {\n description: 'Disable `major` updates.',\n major: {\n enabled: false,\n },\n },\n disablePeerDependencies: {\n description: 'Do not update `peerDependencies` versions/ranges.',\n packageRules: [\n {\n enabled: false,\n matchDepTypes: ['peerDependencies'],\n },\n ],\n },\n disablePrControls: {\n description: 'Remove the checkbox controls from PRs.',\n prBodyTemplate:\n '{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{configDescription}}}{{{footer}}}',\n },\n disableRateLimiting: {\n commitHourlyLimit: 0,\n description: 'Remove hourly and concurrent rate limits.',\n prConcurrentLimit: 0,\n prHourlyLimit: 0,\n },\n disableRenovate: {\n description: 'Disable Renovate.',\n enabled: false,\n },\n disableVulnerabilityAlerts: {\n description: 'Disable vulnerability alerts completely.',\n vulnerabilityAlerts: {\n enabled: false,\n },\n },\n docker: {\n description: 'Keep Dockerfile `FROM` sources updated.',\n 'docker-compose': {\n enabled: true,\n },\n dockerfile: {\n enabled: true,\n },\n },\n doNotPinPackage: {\n description: 'Disable version pinning for `{{arg0}}`.',\n packageRules: [\n {\n matchPackageNames: ['{{arg0}}'],\n rangeStrategy: 'replace',\n },\n ],\n },\n enablePreCommit: {\n description: 'Enable the pre-commit manager.',\n 'pre-commit': {\n enabled: true,\n },\n },\n enableRenovate: {\n description: 'Enable Renovate.',\n enabled: true,\n },\n enableVulnerabilityAlerts: {\n description: 'Raise PR when vulnerability alerts are detected.',\n vulnerabilityAlerts: {\n enabled: true,\n },\n },\n enableVulnerabilityAlertsWithAdditionalLabel: {\n description:\n 'Raise PR when vulnerability alerts are detected with label `{{arg0}}`, in addition to any existing list of PR labels.',\n vulnerabilityAlerts: {\n addLabels: ['{{arg0}}'],\n enabled: true,\n },\n },\n enableVulnerabilityAlertsWithLabel: {\n description:\n 'Raise PR when vulnerability alerts are detected with label `{{arg0}}`, replacing any existing list of PR labels.',\n vulnerabilityAlerts: {\n enabled: true,\n labels: ['{{arg0}}'],\n },\n },\n followTag: {\n description:\n 'For package `{{arg0}}`, strictly follow release tag `{{arg1}}`.',\n packageRules: [\n {\n followTag: '{{arg1}}',\n matchPackageNames: ['{{arg0}}'],\n },\n ],\n },\n githubComToken: {\n description:\n 'Use provided token for `github.com` lookups. Do not configure this if you are already running on `github.com`.',\n hostRules: [\n {\n encrypted: {\n token: '{{arg0}}',\n },\n hostType: 'github',\n matchHost: 'github.com',\n },\n ],\n },\n gitSignOff: {\n commitTrailers: ['Signed-off-by: {{{gitAuthor}}}'],\n description: 'Append `Signed-off-by:` to signoff Git commits.',\n },\n gomod: {\n description: 'Enable Go modules support.',\n gomod: {\n enabled: true,\n },\n },\n group: {\n description: 'Group `{{arg1}}` packages into same branch/PR.',\n packageRules: [\n {\n extends: ['{{arg0}}'],\n groupName: '{{arg1}}',\n },\n ],\n },\n ignoreModulesAndTests: {\n description:\n 'Ignore `node_modules`, `bower_components`, `vendor` and various test/tests (except for nuget) directories.',\n ignorePaths: [\n '**/node_modules/**',\n '**/bower_components/**',\n '**/vendor/**',\n '**/examples/**',\n '**/__tests__/**',\n '**/test/**',\n '**/tests/**',\n '**/__fixtures__/**',\n ],\n nuget: {\n ignorePaths: [\n '**/node_modules/**',\n '**/bower_components/**',\n '**/vendor/**',\n '**/examples/**',\n '**/__fixtures__/**',\n ],\n },\n },\n ignoreUnstable: {\n description:\n 'Upgrade to unstable versions only if the existing version is unstable.',\n ignoreUnstable: true,\n },\n includeNodeModules: {\n description:\n 'Include `package.json` files found within `node_modules` folders or `bower_components`.',\n ignorePaths: [],\n },\n label: {\n description: 'Apply label `{{arg0}}` to PRs.',\n labels: ['{{arg0}}'],\n },\n labels: {\n description: 'Apply labels `{{arg0}}` and `{{arg1}}` to PRs.',\n labels: ['{{arg0}}', '{{arg1}}'],\n },\n maintainLockFilesDisabled: {\n description:\n 'Update existing lock files only when `package.json` is modified.',\n lockFileMaintenance: {\n enabled: false,\n },\n },\n maintainLockFilesMonthly: {\n description:\n 'Run lock file maintenance (updates) on the first day of each month.',\n lockFileMaintenance: {\n enabled: true,\n extends: ['schedule:monthly'],\n },\n },\n maintainLockFilesWeekly: {\n description: 'Run lock file maintenance (updates) early Monday mornings.',\n lockFileMaintenance: {\n enabled: true,\n extends: ['schedule:weekly'],\n },\n },\n meteor: {\n description: 'Keep Meteor Npm.depends packages updated.',\n meteor: {\n enabled: true,\n },\n },\n noUnscheduledUpdates: {\n description: 'Only update branches when scheduled.',\n updateNotScheduled: false,\n },\n npm: {\n description: 'Keep `package.json` npm dependencies updated.',\n npm: {\n enabled: true,\n },\n },\n pathSemanticCommitType: {\n description:\n 'Use semanticCommitType `{{arg1}}` for all package files matching path `{{arg0}}`.',\n packageRules: [\n {\n matchFileNames: ['{{arg0}}'],\n semanticCommitType: '{{arg1}}',\n },\n ],\n },\n pinAllExceptPeerDependencies: {\n description: 'Pin all dependency versions except `peerDependencies`.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n rangeStrategy: 'pin',\n },\n {\n matchDepTypes: ['engines', 'peerDependencies'],\n rangeStrategy: 'auto',\n },\n ],\n },\n pinDependencies: {\n description:\n 'Pin dependency versions where `depType=dependencies`. Usually applies only to non-dev dependencies in `package.json`.',\n packageRules: [\n {\n matchDepTypes: ['dependencies'],\n rangeStrategy: 'pin',\n },\n ],\n },\n pinDevDependencies: {\n description: 'Pin dependency versions for development dependencies.',\n packageRules: [\n {\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n rangeStrategy: 'pin',\n },\n ],\n },\n pinDigestsDisabled: {\n description: `Disable pinning of dependency digests.\n\nNote: This preset does not revert the digest pinning set from within the packageRules, when set at root level or via extends).\nSee [Docker - Disable digest pinning](./docker.md#disable-digest-pinning) for more details.`,\n pinDigests: false,\n },\n pinOnlyDevDependencies: {\n description:\n 'Pin dependency versions for development dependencies and retain SemVer ranges for others.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n rangeStrategy: 'replace',\n },\n {\n matchDepTypes: ['devDependencies', 'dev-dependencies', 'dev'],\n rangeStrategy: 'pin',\n },\n {\n matchDepTypes: ['peerDependencies'],\n rangeStrategy: 'widen',\n },\n ],\n },\n pinSkipCi: {\n description: 'Add `[skip ci]` to commit message body whenever pinning.',\n pin: {\n commitBody: '[skip ci]',\n },\n },\n pinVersions: {\n description:\n 'Use version pinning (maintain a single version only and not SemVer ranges).',\n rangeStrategy: 'pin',\n },\n prConcurrentLimit10: {\n description: 'Limit to maximum 10 open PRs at any time.',\n prConcurrentLimit: 10,\n },\n prConcurrentLimit20: {\n description: 'Limit to maximum 20 open PRs at any time.',\n prConcurrentLimit: 20,\n },\n prConcurrentLimitNone: {\n description: 'Remove limit for open PRs at any time.',\n prConcurrentLimit: 0,\n },\n preserveSemverRanges: {\n description:\n 'Preserve (but continue to upgrade) any existing SemVer ranges.',\n packageRules: [{ matchPackageNames: ['*'], rangeStrategy: 'replace' }],\n },\n prHourlyLimit1: {\n description: 'Rate limit PR creation to a maximum of one per hour.',\n prHourlyLimit: 1,\n },\n prHourlyLimit2: {\n description: 'Rate limit PR creation to a maximum of two per hour.',\n prHourlyLimit: 2,\n },\n prHourlyLimit4: {\n description: 'Rate limit PR creation to a maximum of four per hour.',\n prHourlyLimit: 4,\n },\n prHourlyLimitNone: {\n description: 'Removes rate limit for PR creation per hour.',\n prHourlyLimit: 0,\n },\n prImmediately: {\n description: 'Raise PRs immediately (after branch is created).',\n prCreation: 'immediate',\n },\n prNotPending: {\n description:\n 'Wait for branch tests to pass or fail before creating the PR.',\n prCreation: 'not-pending',\n },\n rebaseStalePrs: {\n description:\n 'Rebase existing PRs any time the base branch has been updated.',\n rebaseWhen: 'behind-base-branch',\n },\n renovatePrefix: {\n branchPrefix: 'renovate/',\n description: 'Add the `renovate/` prefix to all branch names.',\n },\n respectLatest: {\n description: 'Upgrade versions up to the \"latest\" tag in the npm registry.',\n respectLatest: true,\n },\n reviewer: {\n description: 'Add `{{arg0}}` as reviewer for PRs.',\n reviewers: ['{{arg0}}'],\n },\n semanticCommits: {\n description: 'Use semantic prefixes for commit messages and PR titles.',\n semanticCommits: 'enabled',\n },\n semanticCommitScope: {\n description:\n 'Use semantic commit scope `{{arg0}}` for all commits and PR titles.',\n semanticCommitScope: '{{arg0}}',\n },\n semanticCommitScopeDisabled: {\n description: 'Disable semantic commit scope for all commits and PR titles.',\n semanticCommitScope: null,\n },\n semanticCommitsDisabled: {\n description: 'Disable semantic prefixes for commit messages and PR titles.',\n semanticCommits: 'disabled',\n },\n semanticCommitType: {\n description:\n 'Use `{{arg0}}` as semantic commit type for commit messages and PR titles.',\n semanticCommitType: '{{arg0}}',\n },\n semanticCommitTypeAll: {\n description:\n 'If Renovate detects semantic commits, it will use semantic commit type `{{arg0}}` for all commits.',\n packageRules: [\n {\n matchFileNames: ['**/*'],\n semanticCommitType: '{{arg0}}',\n },\n ],\n },\n semanticPrefixChore: {\n description:\n 'Use `chore` as semantic commit type for commit messages and PR titles.',\n extends: [':semanticCommitType(chore)'],\n },\n semanticPrefixFix: {\n description:\n 'Use `fix` as semantic commit type for commit messages and PR titles.',\n extends: [':semanticCommitType(fix)'],\n },\n semanticPrefixFixDepsChoreOthers: {\n description:\n 'Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.',\n packageRules: [\n {\n matchPackageNames: ['*'],\n semanticCommitType: 'chore',\n },\n {\n matchDepTypes: ['dependencies', 'require'],\n semanticCommitType: 'fix',\n },\n {\n matchDatasources: ['maven'],\n matchDepTypes: [\n 'compile',\n 'provided',\n 'runtime',\n 'system',\n 'import',\n 'parent',\n ],\n semanticCommitType: 'fix',\n },\n {\n matchDepTypes: [\n 'project.dependencies',\n 'project.optional-dependencies',\n ],\n matchManagers: ['pep621', 'poetry'],\n semanticCommitType: 'fix',\n },\n {\n matchDepTypes: ['dependencies', 'extras'],\n matchManagers: ['poetry'],\n semanticCommitType: 'fix',\n },\n {\n matchJsonata: ['isLockfileUpdate = true'],\n semanticCommitType: 'chore',\n },\n ],\n },\n separateMajorReleases: {\n description:\n 'Separate `major` versions of dependencies into individual branches/PRs.',\n separateMajorMinor: true,\n },\n separateMultipleMajorReleases: {\n description:\n 'Separate each `major` version of dependencies into individual branches/PRs.',\n separateMajorMinor: true,\n separateMultipleMajor: true,\n },\n separateMultipleMinorReleases: {\n description:\n 'Separate each `minor` version of dependencies into individual branches/PRs.',\n separateMultipleMinor: true,\n },\n separatePatchReleases: {\n description:\n 'Separate `patch` and `minor` releases of dependencies into separate PRs.',\n separateMinorPatch: true,\n },\n skipArtifactsUpdate: {\n description: 'Skips artifact updates.',\n skipArtifactsUpdate: true,\n },\n skipStatusChecks: {\n description: 'Skip status checks and automerge right away.',\n ignoreTests: true,\n },\n timezone: {\n description: 'Evaluate schedules according to timezone `{{arg0}}`.',\n timezone: '{{arg0}}',\n },\n updateNotScheduled: {\n description: 'Keep existing branches updated even when not scheduled.',\n updateNotScheduled: true,\n },\n widenPeerDependencies: {\n description:\n 'Always widen `peerDependencies` SemVer ranges when updating, instead of replacing.',\n packageRules: [\n {\n matchDepTypes: ['peerDependencies'],\n rangeStrategy: 'widen',\n },\n ],\n },\n};\n"],"mappings":";AAEA,MAAa,UAAkC;CAC7C,qBAAqB;EACnB,aAAa;EACb,cAAc,CACZ;GACE,6BAA6B;GAC7B,kBAAkB,CAAC,OAAO;EAC5B,CACF;CACF;CACA,iBAAiB;EACf,aAAa;EACb,SAAS,CAAC,uBAAuB,qBAAqB;CACxD;CACA,UAAU;EACR,WAAW,CAAC,UAAU;EACtB,aAAa;CACf;CACA,cAAc;EACZ,WAAW;EACX,aACE;CACJ;CACA,iBAAiB;EACf,eAAe;EACf,aACE;CACJ;CACA,iBAAiB;EACf,aAAa;EACb,QAAQ,EACN,WAAW,KACb;CACF;CACA,mBAAmB;EACjB,WAAW;EACX,aACE;CACJ;CACA,kBAAkB;EAChB,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,SAAS,CAAC,kBAAkB;EAC9B,CACF;CACF;CACA,gBAAgB;EACd,WAAW;EACX,aACE;CACJ;CACA,gBAAgB;EACd,aAAa;EACb,qBAAqB,EACnB,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,KAAK,EACH,WAAW,KACb;CACF;CACA,gBAAgB;EACd,aAAa;EACb,qBAAqB,EACnB,WAAW,KACb;EACA,OAAO,EACL,WAAW,KACb;EACA,KAAK,EACH,WAAW,KACb;EACA,oBAAoB;CACtB;CACA,aAAa;EACX,eAAe;EACf,aAAa;CACf;CACA,iCAAiC;EAC/B,aAAa;EACb,aAAa;CACf;CACA,yBAAyB;EACvB,aACE;EACF,cAAc,CACZ;GACE,WAAW;GACX,qBAAqB;GACrB,kBAAkB,CAAC,SAAS,OAAO;EACrC,CACF;CACF;CACA,kBAAkB;EAChB,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,SAAS,CAAC,eAAe;EAC3B,CACF;CACF;CACA,gBAAgB;EACd,aAAa;EACb,cAAc,CACZ;GACE,WAAW;GACX,mBAAmB,CAAC,WAAW;EACjC,CACF;CACF;CACA,2BAA2B;EACzB,aACE;EACF,oBAAoB;CACtB;CACA,iBAAiB;EACf,iBAAiB;EACjB,aAAa;CACf;CACA,qBAAqB;EACnB,qBAAqB,EAAE,SAAS,KAAK;EACrC,aAAa;CACf;CACA,6BAA6B;EAC3B,6BAA6B;EAC7B,aAAa;CACf;CACA,4BAA4B;EAC1B,qBAAqB,EAAE,SAAS,MAAM;EACtC,aAAa;CACf;CACA,wBAAwB;EACtB,aAAa;EACb,cAAc,CACZ;GACE,SAAS;GACT,eAAe;IAAC;IAAmB;IAAoB;GAAK;EAC9D,CACF;CACF;CACA,sBAAsB;EACpB,aAAa;EACb,QAAQ,EACN,SAAS,MACX;CACF;CACA,eAAe;EACb,aAAa;EACb,WAAW,CACT;GACE,SAAS;GACT,WAAW;EACb,CACF;CACF;CACA,aAAa;EACX,aAAa;EACb,WAAW,CACT;GACE,SAAS;GACT,WAAW;EACb,CACF;CACF;CACA,qBAAqB;EACnB,aAAa;EACb,OAAO,EACL,SAAS,MACX;CACF;CACA,yBAAyB;EACvB,aAAa;EACb,cAAc,CACZ;GACE,SAAS;GACT,eAAe,CAAC,kBAAkB;EACpC,CACF;CACF;CACA,mBAAmB;EACjB,aAAa;EACb,gBACE;CACJ;CACA,qBAAqB;EACnB,mBAAmB;EACnB,aAAa;EACb,mBAAmB;EACnB,eAAe;CACjB;CACA,iBAAiB;EACf,aAAa;EACb,SAAS;CACX;CACA,4BAA4B;EAC1B,aAAa;EACb,qBAAqB,EACnB,SAAS,MACX;CACF;CACA,QAAQ;EACN,aAAa;EACb,kBAAkB,EAChB,SAAS,KACX;EACA,YAAY,EACV,SAAS,KACX;CACF;CACA,iBAAiB;EACf,aAAa;EACb,cAAc,CACZ;GACE,mBAAmB,CAAC,UAAU;GAC9B,eAAe;EACjB,CACF;CACF;CACA,iBAAiB;EACf,aAAa;EACb,cAAc,EACZ,SAAS,KACX;CACF;CACA,gBAAgB;EACd,aAAa;EACb,SAAS;CACX;CACA,2BAA2B;EACzB,aAAa;EACb,qBAAqB,EACnB,SAAS,KACX;CACF;CACA,8CAA8C;EAC5C,aACE;EACF,qBAAqB;GACnB,WAAW,CAAC,UAAU;GACtB,SAAS;EACX;CACF;CACA,oCAAoC;EAClC,aACE;EACF,qBAAqB;GACnB,SAAS;GACT,QAAQ,CAAC,UAAU;EACrB;CACF;CACA,WAAW;EACT,aACE;EACF,cAAc,CACZ;GACE,WAAW;GACX,mBAAmB,CAAC,UAAU;EAChC,CACF;CACF;CACA,gBAAgB;EACd,aACE;EACF,WAAW,CACT;GACE,WAAW,EACT,OAAO,WACT;GACA,UAAU;GACV,WAAW;EACb,CACF;CACF;CACA,YAAY;EACV,gBAAgB,CAAC,gCAAgC;EACjD,aAAa;CACf;CACA,OAAO;EACL,aAAa;EACb,OAAO,EACL,SAAS,KACX;CACF;CACA,OAAO;EACL,aAAa;EACb,cAAc,CACZ;GACE,SAAS,CAAC,UAAU;GACpB,WAAW;EACb,CACF;CACF;CACA,uBAAuB;EACrB,aACE;EACF,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EACA,OAAO,EACL,aAAa;GACX;GACA;GACA;GACA;GACA;EACF,EACF;CACF;CACA,gBAAgB;EACd,aACE;EACF,gBAAgB;CAClB;CACA,oBAAoB;EAClB,aACE;EACF,aAAa,CAAC;CAChB;CACA,OAAO;EACL,aAAa;EACb,QAAQ,CAAC,UAAU;CACrB;CACA,QAAQ;EACN,aAAa;EACb,QAAQ,CAAC,YAAY,UAAU;CACjC;CACA,2BAA2B;EACzB,aACE;EACF,qBAAqB,EACnB,SAAS,MACX;CACF;CACA,0BAA0B;EACxB,aACE;EACF,qBAAqB;GACnB,SAAS;GACT,SAAS,CAAC,kBAAkB;EAC9B;CACF;CACA,yBAAyB;EACvB,aAAa;EACb,qBAAqB;GACnB,SAAS;GACT,SAAS,CAAC,iBAAiB;EAC7B;CACF;CACA,QAAQ;EACN,aAAa;EACb,QAAQ,EACN,SAAS,KACX;CACF;CACA,sBAAsB;EACpB,aAAa;EACb,oBAAoB;CACtB;CACA,KAAK;EACH,aAAa;EACb,KAAK,EACH,SAAS,KACX;CACF;CACA,wBAAwB;EACtB,aACE;EACF,cAAc,CACZ;GACE,gBAAgB,CAAC,UAAU;GAC3B,oBAAoB;EACtB,CACF;CACF;CACA,8BAA8B;EAC5B,aAAa;EACb,cAAc,CACZ;GACE,mBAAmB,CAAC,GAAG;GACvB,eAAe;EACjB,GACA;GACE,eAAe,CAAC,WAAW,kBAAkB;GAC7C,eAAe;EACjB,CACF;CACF;CACA,iBAAiB;EACf,aACE;EACF,cAAc,CACZ;GACE,eAAe,CAAC,cAAc;GAC9B,eAAe;EACjB,CACF;CACF;CACA,oBAAoB;EAClB,aAAa;EACb,cAAc,CACZ;GACE,eAAe;IAAC;IAAmB;IAAoB;GAAK;GAC5D,eAAe;EACjB,CACF;CACF;CACA,oBAAoB;EAClB,aAAa;;;;EAIb,YAAY;CACd;CACA,wBAAwB;EACtB,aACE;EACF,cAAc;GACZ;IACE,mBAAmB,CAAC,GAAG;IACvB,eAAe;GACjB;GACA;IACE,eAAe;KAAC;KAAmB;KAAoB;IAAK;IAC5D,eAAe;GACjB;GACA;IACE,eAAe,CAAC,kBAAkB;IAClC,eAAe;GACjB;EACF;CACF;CACA,WAAW;EACT,aAAa;EACb,KAAK,EACH,YAAY,YACd;CACF;CACA,aAAa;EACX,aACE;EACF,eAAe;CACjB;CACA,qBAAqB;EACnB,aAAa;EACb,mBAAmB;CACrB;CACA,qBAAqB;EACnB,aAAa;EACb,mBAAmB;CACrB;CACA,uBAAuB;EACrB,aAAa;EACb,mBAAmB;CACrB;CACA,sBAAsB;EACpB,aACE;EACF,cAAc,CAAC;GAAE,mBAAmB,CAAC,GAAG;GAAG,eAAe;EAAU,CAAC;CACvE;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,gBAAgB;EACd,aAAa;EACb,eAAe;CACjB;CACA,mBAAmB;EACjB,aAAa;EACb,eAAe;CACjB;CACA,eAAe;EACb,aAAa;EACb,YAAY;CACd;CACA,cAAc;EACZ,aACE;EACF,YAAY;CACd;CACA,gBAAgB;EACd,aACE;EACF,YAAY;CACd;CACA,gBAAgB;EACd,cAAc;EACd,aAAa;CACf;CACA,eAAe;EACb,aAAa;EACb,eAAe;CACjB;CACA,UAAU;EACR,aAAa;EACb,WAAW,CAAC,UAAU;CACxB;CACA,iBAAiB;EACf,aAAa;EACb,iBAAiB;CACnB;CACA,qBAAqB;EACnB,aACE;EACF,qBAAqB;CACvB;CACA,6BAA6B;EAC3B,aAAa;EACb,qBAAqB;CACvB;CACA,yBAAyB;EACvB,aAAa;EACb,iBAAiB;CACnB;CACA,oBAAoB;EAClB,aACE;EACF,oBAAoB;CACtB;CACA,uBAAuB;EACrB,aACE;EACF,cAAc,CACZ;GACE,gBAAgB,CAAC,MAAM;GACvB,oBAAoB;EACtB,CACF;CACF;CACA,qBAAqB;EACnB,aACE;EACF,SAAS,CAAC,4BAA4B;CACxC;CACA,mBAAmB;EACjB,aACE;EACF,SAAS,CAAC,0BAA0B;CACtC;CACA,kCAAkC;EAChC,aACE;EACF,cAAc;GACZ;IACE,mBAAmB,CAAC,GAAG;IACvB,oBAAoB;GACtB;GACA;IACE,eAAe,CAAC,gBAAgB,SAAS;IACzC,oBAAoB;GACtB;GACA;IACE,kBAAkB,CAAC,OAAO;IAC1B,eAAe;KACb;KACA;KACA;KACA;KACA;KACA;IACF;IACA,oBAAoB;GACtB;GACA;IACE,eAAe,CACb,wBACA,+BACF;IACA,eAAe,CAAC,UAAU,QAAQ;IAClC,oBAAoB;GACtB;GACA;IACE,eAAe,CAAC,gBAAgB,QAAQ;IACxC,eAAe,CAAC,QAAQ;IACxB,oBAAoB;GACtB;GACA;IACE,cAAc,CAAC,yBAAyB;IACxC,oBAAoB;GACtB;EACF;CACF;CACA,uBAAuB;EACrB,aACE;EACF,oBAAoB;CACtB;CACA,+BAA+B;EAC7B,aACE;EACF,oBAAoB;EACpB,uBAAuB;CACzB;CACA,+BAA+B;EAC7B,aACE;EACF,uBAAuB;CACzB;CACA,uBAAuB;EACrB,aACE;EACF,oBAAoB;CACtB;CACA,qBAAqB;EACnB,aAAa;EACb,qBAAqB;CACvB;CACA,kBAAkB;EAChB,aAAa;EACb,aAAa;CACf;CACA,UAAU;EACR,aAAa;EACb,UAAU;CACZ;CACA,oBAAoB;EAClB,aAAa;EACb,oBAAoB;CACtB;CACA,uBAAuB;EACrB,aACE;EACF,cAAc,CACZ;GACE,eAAe,CAAC,kBAAkB;GAClC,eAAe;EACjB,CACF;CACF;AACF"}
|
package/dist/config/types.d.ts
CHANGED
|
@@ -352,16 +352,9 @@ export interface RenovateConfig extends LegacyAdminConfig, RenovateSharedConfig,
|
|
|
352
352
|
ignorePresets?: string[];
|
|
353
353
|
fileList?: string[];
|
|
354
354
|
configWarningReuseIssue?: boolean;
|
|
355
|
-
dependencyDashboard?:
|
|
356
|
-
dependencyDashboardAutoclose?: boolean;
|
|
355
|
+
dependencyDashboard?: DependencyDashboardConfig;
|
|
357
356
|
dependencyDashboardChecks?: Record<string, string>;
|
|
358
357
|
dependencyDashboardIssue?: number;
|
|
359
|
-
dependencyDashboardTitle?: string;
|
|
360
|
-
dependencyDashboardHeader?: string;
|
|
361
|
-
dependencyDashboardFooter?: string;
|
|
362
|
-
dependencyDashboardLabels?: string[];
|
|
363
|
-
dependencyDashboardOSVVulnerabilitySummary?: 'none' | 'all' | 'unresolved';
|
|
364
|
-
dependencyDashboardReportAbandonment?: boolean;
|
|
365
358
|
mode?: 'silent' | 'full';
|
|
366
359
|
packageFile?: string;
|
|
367
360
|
packageRules?: PackageRule[];
|
|
@@ -402,7 +395,6 @@ export interface RenovateConfig extends LegacyAdminConfig, RenovateSharedConfig,
|
|
|
402
395
|
constraintsVersioning?: Partial<Record<AdditionalConstraintName, string>>;
|
|
403
396
|
skipInstalls?: boolean | null;
|
|
404
397
|
constraintsFiltering?: ConstraintsFilter;
|
|
405
|
-
customizeDashboard?: Record<string, string>;
|
|
406
398
|
statusCheckNames?: Record<StatusCheckKey, string | null>;
|
|
407
399
|
statusCheckWhen?: Partial<Record<StatusCheckKey, StatusCheckWhen>>;
|
|
408
400
|
/**
|
|
@@ -515,7 +507,7 @@ export type ConfigScope = (typeof configScopes)[number];
|
|
|
515
507
|
/**
|
|
516
508
|
* The objects which a config can be nested in, other than the top level and the ones which are covered by a {@link ConfigScope}.
|
|
517
509
|
*/
|
|
518
|
-
export declare const namedParents: readonly ['bumpVersions', 'customDatasources', 'customManagers', 'group', 'hostRules', 'logLevelRemap', 'packageRules', 'postUpgradeTasks', 'toolSettings', 'vulnerabilityAlerts'];
|
|
510
|
+
export declare const namedParents: readonly ['bumpVersions', 'customDatasources', 'customManagers', 'dependencyDashboard', 'group', 'hostRules', 'logLevelRemap', 'packageRules', 'postUpgradeTasks', 'toolSettings', 'vulnerabilityAlerts'];
|
|
519
511
|
export type AllowedParents = '.' | (typeof namedParents)[number] | ManagerName | CustomManagerName | UpdateTypeOptions;
|
|
520
512
|
export interface RenovateOptionBase {
|
|
521
513
|
/**
|
|
@@ -728,6 +720,17 @@ export interface ValidationResult {
|
|
|
728
720
|
errors: ValidationMessage[];
|
|
729
721
|
warnings: ValidationMessage[];
|
|
730
722
|
}
|
|
723
|
+
export interface DependencyDashboardConfig {
|
|
724
|
+
enabled?: boolean;
|
|
725
|
+
autoclose?: boolean;
|
|
726
|
+
title?: string;
|
|
727
|
+
header?: string;
|
|
728
|
+
footer?: string;
|
|
729
|
+
labels?: string[];
|
|
730
|
+
osvVulnerabilitySummary?: 'none' | 'all' | 'unresolved';
|
|
731
|
+
reportAbandonment?: boolean;
|
|
732
|
+
customize?: Record<string, string>;
|
|
733
|
+
}
|
|
731
734
|
export interface BumpVersionConfig {
|
|
732
735
|
bumpType?: string;
|
|
733
736
|
filePatterns: string[];
|
package/dist/config/types.js
CHANGED
package/dist/config/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../lib/config/types.ts"],"sourcesContent":["import type { Category, PlatformId } from '../constants/index.ts';\nimport type { LogLevelRemap } from '../logger/types.ts';\nimport type {\n CustomManagerName,\n ManagerName,\n} from '../manager-list.generated.ts';\nimport type { CustomManager } from '../modules/manager/custom/types.ts';\nimport type {\n GitUrlOption,\n RepoSortMethod,\n SortMethod,\n} from '../modules/platform/types.ts';\nimport type {\n AutoMergeType,\n HostRule,\n Nullish,\n RangeStrategy,\n SkipReason,\n} from '../types/index.ts';\nimport type { StageName } from '../types/skip-reason.ts';\nimport type {\n AdditionalConstraintName,\n ConstraintName,\n ToolName,\n} from '../util/exec/types.ts';\nimport type { GitNoVerifyOption } from '../util/git/types.ts';\nimport type { MergeConfidence } from '../util/merge-confidence/types.ts';\nimport type { Timestamp } from '../util/timestamp.ts';\nimport type { ConfigValidationTopic } from './validation-helpers/types.ts';\n\nexport type RenovateConfigStage =\n 'global' | 'inherit' | 'repository' | 'package' | 'branch' | 'pr';\n\nexport type RenovateSplit =\n 'init' | 'onboarding' | 'extract' | 'lookup' | 'update';\n\nexport type RepositoryCacheConfig = 'disabled' | 'enabled' | 'reset';\nexport type RepositoryCacheType = 'local' | (string & {});\nexport type DryRunConfig = 'extract' | 'lookup' | 'full';\nexport type InternalHostAccess = 'allow' | 'warn' | 'block';\nexport type RequiredConfig = 'required' | 'optional' | 'ignored';\n\nexport interface GroupConfig extends Record<string, unknown> {\n branchName?: string;\n branchTopic?: string;\n}\n\nexport type RecreateWhen = 'auto' | 'never' | 'always';\nexport const allowedStatusCheckWhenValues = [\n 'always',\n 'never',\n 'failed',\n] as const;\nexport type StatusCheckWhen = (typeof allowedStatusCheckWhenValues)[number];\nexport type PlatformCommitOptions = 'auto' | 'disabled' | 'enabled';\n\nexport type BinarySource = 'docker' | 'global' | 'install' | 'hermit';\n\n// TODO: Proper typings\n/**\n * Any configuration that could be used either top-level in a repository config (or Global, Inherited or Shareable Preset configuration), or:\n *\n * - in a datasource-specific configuration\n * - in a manager-specific configuration\n * - in a Package Rule\n *\n * @see RenovateConfig for the superset of all configuration allowed in a given repository\n *\n */\nexport interface RenovateSharedConfig {\n $schema?: string;\n abandonmentThreshold?: Nullish<string>;\n addLabels?: string[];\n assignAutomerge?: boolean;\n autoApprove?: boolean;\n autoReplaceGlobalMatch?: boolean;\n automerge?: boolean;\n automergeSchedule?: string[];\n automergeStrategy?: MergeStrategy;\n automergeType?: AutoMergeType;\n azureWorkItemId?: number;\n azureWorkItemType?: string;\n branchName?: string;\n branchNameStrict?: boolean;\n branchPrefix?: string;\n branchPrefixOld?: string;\n bumpVersions?: BumpVersionConfig[];\n commitBody?: string;\n commitBodyTable?: boolean;\n commitMessage?: string;\n commitMessageAction?: string;\n commitMessageExtra?: string;\n commitMessageLowerCase?: 'auto' | 'never';\n commitMessagePrefix?: string;\n commitMessageTopic?: string;\n commitTrailers?: string[];\n confidential?: boolean;\n configValidationError?: boolean;\n changelogUrl?: string;\n dependencyDashboardApproval?: boolean;\n draftPR?: boolean;\n enabled?: boolean;\n enabledManagers?: string[];\n encrypted?: Record<string, string>;\n extends?: string[];\n extractVersion?: string;\n managerFilePatterns?: string[];\n followTag?: string;\n force?: RenovateConfig;\n gitIgnoredAuthors?: string[];\n group?: GroupConfig;\n groupName?: string;\n groupSingleUpdates?: boolean;\n groupSlug?: string;\n hashedBranchLength?: number;\n ignoreDeps?: string[];\n ignorePaths?: string[];\n ignoreTests?: boolean;\n ignoreUnstable?: boolean;\n includePaths?: string[];\n internalChecksAsSuccess?: boolean;\n internalChecksFilter?: 'strict' | 'flexible' | 'none';\n keepUpdatedLabel?: string;\n labels?: string[];\n manager?: string;\n milestone?: number;\n minimumReleaseAge?: Nullish<string>;\n minimumReleaseAgeBuffer?: Nullish<string>;\n npmrc?: string;\n npmrcMerge?: boolean;\n npmToken?: string;\n\n pinDigests?: boolean;\n platformAutomerge?: boolean;\n platformCommit?: PlatformCommitOptions;\n postUpgradeTasks?: PostUpgradeTasks;\n prBodyColumns?: string[];\n prBodyDefinitions?: Record<string, string>;\n prBodyHeadingDefinitions?: Record<string, string>;\n prBodyNotes?: string[];\n prCreation?: 'immediate' | 'not-pending' | 'status-success' | 'approval';\n prFooter?: string;\n prHeader?: string;\n prPriority?: number;\n prTitle?: string;\n prTitleStrict?: boolean;\n pruneBranchAfterAutomerge?: boolean;\n rangeStrategy?: RangeStrategy;\n rebaseLabel?: string;\n rebaseWhen?: string;\n recreateClosed?: boolean;\n recreateWhen?: RecreateWhen;\n repository?: string;\n repositoryCache?: RepositoryCacheConfig;\n repositoryCacheType?: RepositoryCacheType;\n respectLatest?: boolean;\n rollbackPrs?: boolean;\n schedule?: string[];\n semanticCommitScope?: string | null;\n semanticCommitType?: string;\n semanticCommits?: 'auto' | 'enabled' | 'disabled';\n separateMajorMinor?: boolean;\n separateMinorPatch?: boolean;\n separateMultipleMajor?: boolean;\n separateMultipleMinor?: boolean;\n skipArtifactsUpdate?: boolean;\n stopUpdatingLabel?: string;\n suppressNotifications?: string[];\n timezone?: string;\n unicodeEmoji?: boolean;\n updateNotScheduled?: boolean;\n versioning?: string;\n versionCompatibility?: string;\n}\n\n/**\n * Contains all options with globalOnly=true && inheritConfigSupport=true\n */\nexport interface GlobalInheritableConfig {\n bbUseDevelopmentBranch?: boolean;\n configFileNames?: string[];\n onboarding?: boolean;\n onboardingAutoCloseAge?: number;\n onboardingBranch?: string;\n onboardingCommitMessage?: string;\n onboardingConfig?: RenovateConfig;\n onboardingConfigFileName?: string;\n onboardingNoDeps?: 'auto' | 'enabled' | 'disabled';\n onboardingPrTitle?: string;\n requireConfig?: RequiredConfig;\n}\n\n// Config options used only within the global worker\n// The below should contain config options where stage=global\n/** @deprecated use `RepoGlobalConfig` instead **/\nexport interface GlobalOnlyConfigLegacy {\n autodiscover?: boolean;\n autodiscoverFilter?: string[] | string;\n autodiscoverNamespaces?: string[];\n autodiscoverProjects?: string[];\n autodiscoverTopics?: string[];\n baseDir?: string;\n cacheDir?: string;\n containerbaseDir?: string;\n detectHostRulesFromEnv?: boolean;\n dockerCliOptions?: string;\n endpoint?: string;\n exitCodeForErrors?: boolean;\n forceCli?: boolean;\n gitNoVerify?: GitNoVerifyOption[];\n gitPrivateKey?: string;\n gitPrivateKeyPassphrase?: string;\n globalExtends?: string[];\n mergeConfidenceDatasources?: string[];\n mergeConfidenceEndpoint?: string;\n platform?: PlatformId;\n processEnv?: Record<string, string>;\n prCommitsPerRunLimit?: number;\n privateKey?: string;\n privateKeyOld?: string;\n privateKeyPath?: string;\n privateKeyPathOld?: string;\n redisPrefix?: string;\n redisUrl?: string;\n repositories?: RenovateRepository[];\n useCloudMetadataServices?: boolean;\n deleteConfigFile?: boolean;\n deleteAdditionalConfigFile?: boolean;\n}\n\n/**\n * Any global-only configuration set by self-hosted administrators.\n *\n * Used within the repository worker.\n *\n * Should only contain config options where globalOnly=true.\n */\nexport interface RepoGlobalConfig extends GlobalInheritableConfig {\n allowedCommands?: string[];\n allowCustomCrateGitRegistries?: boolean;\n allowPlugins?: boolean;\n allowScripts?: boolean;\n allowShellExecutorForPostUpgradeCommands?: boolean;\n allowedEnv?: string[];\n allowedHeaders?: string[];\n binarySource?: BinarySource;\n cacheDir?: string;\n cacheHardTtlMinutes?: number;\n cacheTtlOverride?: Record<string, number>;\n checkedBranches?: string[];\n containerbaseDir?: string;\n customEnvVariables?: Record<string, string>;\n dockerChildPrefix?: string;\n dockerCliOptions?: string;\n dockerSidecarImage?: string;\n dockerUser?: string;\n dryRun?: DryRunConfig;\n encryptedWarning?: string;\n endpoint?: string;\n executionTimeout?: number;\n exposeAllEnv?: boolean;\n gitTimeout?: number;\n githubTokenWarn?: boolean;\n goEnvFromHostRules?: boolean;\n includeMirrors?: boolean;\n inheritConfigTrusted?: boolean;\n internalHostAccess?: InternalHostAccess;\n migratePresets?: Record<string, string>;\n platform?: PlatformId;\n prCacheSyncMaxPages?: number;\n presetCachePersistence?: boolean;\n httpCacheTtlDays?: number;\n autodiscoverRepoSort?: RepoSortMethod;\n autodiscoverRepoOrder?: SortMethod;\n userAgent?: string;\n dockerMaxPages?: number;\n s3Endpoint?: string;\n s3PathStyle?: boolean;\n cachePrivatePackages?: boolean;\n repositoryCacheForceLocal?: boolean;\n configFileNames?: string[];\n ignorePrAuthor?: boolean;\n allowedUnsafeExecutions?: AllowedUnsafeExecution[];\n onboardingAutoCloseAge?: number;\n productLinks?: Record<string, string>;\n rebaseAllOpenBranches?: boolean;\n toolSettings?: GlobalToolSettingsOptions;\n}\n\n/**\n * Internal variables which are referenced from `GlobalConfig`, but are *not* user-configurable options.\n */\nexport interface InternalGlobalConfigOptions {\n localDir?: string;\n}\n\n/**\n * Those options are global only but still passed into the repository worker config.\n *\n * @deprecated https://github.com/renovatebot/renovate/issues/39693\n */\nexport interface LegacyAdminConfig {\n baseDir?: string;\n localDir?: string;\n\n logContext?: string;\n\n onboarding?: boolean;\n onboardingBranch?: string;\n onboardingNoDeps?: 'auto' | 'enabled' | 'disabled';\n onboardingRebaseCheckbox?: boolean;\n onboardingConfig?: RenovateConfig;\n onboardingConfigFileName?: string;\n\n optimizeForDisabled?: boolean;\n\n persistRepoData?: boolean;\n\n prCommitsPerRunLimit?: number;\n\n requireConfig?: RequiredConfig;\n\n useCloudMetadataServices?: boolean;\n\n writeDiscoveredRepos?: string;\n}\n\nexport type ExecutionMode = 'branch' | 'update';\n\nexport interface PostUpgradeTasks {\n commands?: string[];\n workingDirTemplate?: string;\n dataFileTemplate?: string;\n fileFilters?: string[];\n executionMode: ExecutionMode;\n installTools?: Partial<Record<ToolName, Record<never, never>>>;\n}\n\nexport type UpdateConfig<\n T extends RenovateSharedConfig = RenovateSharedConfig,\n> = Partial<Record<UpdateType, T | null>>;\n\nexport type RenovateRepositoryEntry = AllConfig & {\n repository: string;\n};\n\nexport type RenovateRepository = string | RenovateRepositoryEntry;\n\nexport type UseBaseBranchConfigType = 'merge' | 'merge-if-present' | 'none';\nexport type ConstraintsFilter = 'strict' | 'none';\nexport type MinimumReleaseAgeBehaviour =\n 'timestamp-required' | 'timestamp-optional';\n\nexport const allowedStatusCheckStrings = [\n 'minimumReleaseAge',\n 'mergeConfidence',\n 'configValidation',\n 'artifactError',\n] as const;\nexport type StatusCheckKey = (typeof allowedStatusCheckStrings)[number];\ntype UserEnv = Record<string, string>;\n\n/**\n * Computed properties, for internal use only\n */\nexport interface RenovateInternalConfig {\n /** computed base branch from patterns - for internal use only */\n baseBranches?: string[];\n currentCompatibility?: string;\n datasource?: string;\n hasBaseBranches?: boolean;\n isFork?: boolean;\n isVulnerabilityAlert?: boolean;\n\n /** What is this used for? */\n remediations?: unknown;\n /** What is this used for? */\n vulnerabilityAlertsOnly?: boolean;\n}\n\n// TODO: Proper typings\n/**\n * Configuration that could be used either top-level in a repository config (or Global, Inherited or Shareable Preset configuration).\n *\n * This is a superset of any configuration that a Renovate user (not self-hosted administrator) can set.\n */\nexport interface RenovateConfig\n extends\n LegacyAdminConfig,\n RenovateSharedConfig,\n UpdateConfig<PackageRule>,\n AssigneesAndReviewersConfig,\n ConfigMigration,\n RenovateInternalConfig {\n s3Endpoint?: string;\n s3PathStyle?: boolean;\n reportFormatting?: boolean;\n reportPath?: string;\n reportType?: 'logging' | 'file' | 's3' | null;\n depName?: string;\n /** user configurable base branch patterns*/\n baseBranchPatterns?: string[];\n useBaseBranchConfig?: UseBaseBranchConfigType;\n baseBranch?: string;\n defaultBranch?: string;\n branchList?: string[];\n cloneSubmodules?: boolean;\n cloneSubmodulesFilter?: string[];\n description?: string | string[];\n overrideDescription?: string | string[];\n detectGlobalManagerConfig?: boolean;\n errors?: ValidationMessage[];\n forkModeDisallowMaintainerEdits?: boolean;\n forkProcessing?: 'auto' | 'enabled' | 'disabled';\n forkToken?: string;\n\n gitAuthor?: string;\n\n hostRules?: HostRule[];\n\n inheritConfig?: boolean;\n inheritConfigFileName?: string;\n inheritConfigRepoName?: string;\n inheritConfigStrict?: boolean;\n\n ignorePresets?: string[];\n\n fileList?: string[];\n configWarningReuseIssue?: boolean;\n dependencyDashboard?: boolean;\n dependencyDashboardAutoclose?: boolean;\n dependencyDashboardChecks?: Record<string, string>;\n dependencyDashboardIssue?: number;\n dependencyDashboardTitle?: string;\n dependencyDashboardHeader?: string;\n dependencyDashboardFooter?: string;\n dependencyDashboardLabels?: string[];\n dependencyDashboardOSVVulnerabilitySummary?: 'none' | 'all' | 'unresolved';\n dependencyDashboardReportAbandonment?: boolean;\n mode?: 'silent' | 'full';\n packageFile?: string;\n packageRules?: PackageRule[];\n postUpdateOptions?: string[];\n branchConcurrentLimit?: number | null;\n parentOrg?: string;\n prConcurrentLimit?: number;\n commitHourlyLimit?: number;\n prHourlyLimit?: number;\n\n printConfig?: boolean;\n\n pruneStaleBranches?: boolean;\n\n defaultRegistryUrls?: string[];\n registryUrls?: string[] | null;\n registryAliases?: Record<string, string>;\n\n /**\n * What is this used for?\n * @deprecated\n */\n renovateJsonPresent?: boolean;\n\n repoIsOnboarded?: boolean;\n repoIsActivated?: boolean;\n\n topLevelOrg?: string;\n updateInternalDeps?: boolean;\n updateType?: UpdateType;\n\n warnings?: ValidationMessage[];\n vulnerabilityAlerts?: RenovateSharedConfig;\n osvVulnerabilityAlerts?: boolean;\n vulnerabilitySeverity?: string;\n customManagers?: CustomManager[];\n customDatasources?: Record<string, CustomDatasourceConfig>;\n\n fetchChangeLogs?: FetchChangeLogsOptions;\n secrets?: Record<string, string>;\n variables?: Record<string, string>;\n\n constraints?: Partial<Record<ConstraintName, string>>;\n /**\n * Any specific overrides for the versioning for the `AdditionalConstraintName`s.\n */\n constraintsVersioning?: Partial<Record<AdditionalConstraintName, string>>;\n skipInstalls?: boolean | null;\n\n constraintsFiltering?: ConstraintsFilter;\n\n customizeDashboard?: Record<string, string>;\n\n statusCheckNames?: Record<StatusCheckKey, string | null>;\n statusCheckWhen?: Partial<Record<StatusCheckKey, StatusCheckWhen>>;\n /**\n * User configured environment variables that Renovate uses when executing package manager commands\n */\n env?: UserEnv;\n logLevelRemap?: LogLevelRemap[];\n\n branchTopic?: string;\n additionalBranchPrefix?: string;\n sharedVariableName?: string;\n minimumGroupSize?: number;\n configFileNames?: string[];\n minimumReleaseAgeBehaviour?: MinimumReleaseAgeBehaviour;\n toolSettings?: RepoToolSettingsOptions;\n}\n\nexport const CustomDatasourceFormats = [\n 'html',\n 'json',\n 'plain',\n 'toml',\n 'yaml',\n] as const;\nexport type CustomDatasourceFormats = (typeof CustomDatasourceFormats)[number];\n\nexport interface CustomDatasourceConfig {\n defaultRegistryUrlTemplate?: string;\n format?: CustomDatasourceFormats;\n transformTemplates?: string[];\n}\n\n/**\n * The superset of all configuration that a self-hosted administrator can set, alongside all repository-level configuration.\n *\n */\nexport interface AllConfig\n extends RenovateConfig, GlobalOnlyConfigLegacy, RepoGlobalConfig {\n gitUrl?: GitUrlOption;\n password?: string;\n token?: string;\n username?: string;\n}\n\nexport interface AssigneesAndReviewersConfig {\n assigneesFromCodeOwners?: boolean;\n expandCodeOwnersGroups?: boolean;\n assignees?: string[];\n assigneesSampleSize?: number;\n ignoreReviewers?: string[];\n reviewersFromCodeOwners?: boolean;\n reviewers?: string[];\n reviewersSampleSize?: number;\n additionalReviewers?: string[];\n filterUnavailableUsers?: boolean;\n}\n\nexport type UpdateType =\n | 'major'\n | 'minor'\n | 'patch'\n | 'pin'\n | 'digest'\n | 'pinDigest'\n | 'lockFileMaintenance'\n | 'lockfileUpdate'\n | 'rollback'\n | 'bump'\n | 'replacement';\n\n// These are the update types which can have configuration\nexport const UpdateTypesOptions = [\n 'major',\n 'minor',\n 'patch',\n 'pin',\n 'digest',\n 'pinDigest',\n 'lockFileMaintenance',\n 'rollback',\n 'replacement',\n] as const;\n\nexport type UpdateTypeOptions = (typeof UpdateTypesOptions)[number];\n\nexport type FetchChangeLogsOptions = 'off' | 'branch' | 'pr';\n\nexport type MatchStringsStrategy = 'any' | 'recursive' | 'combination';\n\nexport type MergeStrategy =\n | 'auto'\n | 'fast-forward'\n | 'merge-commit'\n | 'rebase'\n | 'rebase-merge'\n | 'squash';\n\n// This list should be added to as any new unsafe execution commands should be permitted\nexport type AllowedUnsafeExecution =\n 'bazelModDeps' | 'goGenerate' | 'gradleWrapper' | 'mise' | 'pixi';\n\n// TODO: Proper typings\nexport interface PackageRule\n extends RenovateSharedConfig, RenovateInternalConfig, UpdateConfig {\n allowedVersions?: string;\n description?: string | string[];\n matchBaseBranches?: string[];\n matchCategories?: string[];\n matchConfidence?: MergeConfidence[];\n matchCurrentAge?: string;\n matchCurrentValue?: string;\n matchCurrentVersion?: string;\n matchDatasources?: string[];\n matchDepNames?: string[];\n matchDepTypes?: string[];\n matchFileNames?: string[];\n matchIsBreaking?: boolean;\n matchManagers?: string[];\n matchNewValue?: string;\n matchPackageNames?: string[];\n matchRepositories?: string[];\n matchSourceUrls?: string[];\n matchRegistryUrls?: string[];\n matchUpdateTypes?: UpdateType[];\n matchJsonata?: string[];\n overrideDatasource?: string;\n overrideDepName?: string;\n overridePackageName?: string;\n registryUrls?: string[] | null;\n replacementName?: string;\n replacementVersion?: string;\n sourceUrl?: string;\n sourceDirectory?: string;\n vulnerabilitySeverity?: string;\n vulnerabilityFixVersion?: string;\n}\n\nexport interface ValidationMessage {\n // Topic is either the known list of topics, or a dynamically generated one\n topic: ConfigValidationTopic | (string & {});\n message: string;\n}\n\n/**\n * The kinds of place a config option can be used, which expand to the {@link AllowedParents} they cover.\n *\n * These are for the places which can't reasonably be listed, like every manager or every update type, so an option which is only valid in a specific object - like `hostRules` - should use `parents` instead.\n */\nexport const configScopes = [\n /** the top level of a repository, global, inherited or preset config */\n 'repo',\n /** a `packageRules` entry */\n 'packageRule',\n /** a manager's configuration object, like `npm` */\n 'manager',\n /** an update type's configuration object, like `major` */\n 'updateType',\n /** the `vulnerabilityAlerts` configuration object */\n 'vulnerabilityAlert',\n /** the `group` configuration object, which is merged into an update when it's grouped */\n 'group',\n /** every object a config can be nested in, for the options which are read wherever they're found */\n 'any',\n] as const;\n\nexport type ConfigScope = (typeof configScopes)[number];\n\n/**\n * The objects which a config can be nested in, other than the top level and the ones which are covered by a {@link ConfigScope}.\n */\nexport const namedParents = [\n 'bumpVersions',\n 'customDatasources',\n 'customManagers',\n 'group',\n 'hostRules',\n 'logLevelRemap',\n 'packageRules',\n 'postUpgradeTasks',\n 'toolSettings',\n 'vulnerabilityAlerts',\n] as const;\n\nexport type AllowedParents =\n | '.'\n | (typeof namedParents)[number]\n | ManagerName\n | CustomManagerName\n | UpdateTypeOptions;\nexport interface RenovateOptionBase {\n /**\n * If true, this option **MUST** be checked at the trust boundary: after resolving the full config that sets it, but **before** the value is applied.\n *\n * This is in addition to any existing config validation, and ensures that these options are re-validated due to their sensitive nature.\n *\n * A failure of that check **must** lead to a {@link ConfigValidationTopic.Security} error (which is then a full config validation error), stopping the Renovate run.\n *\n * After this check has been performed, additional filtering (for defense in depth) could be performed, but may not have an indication of what is repo- or preset-config vs global self-hosted config.\n */\n requiresCheckAtTrustBoundary?: boolean;\n\n inheritConfigSupport?: boolean;\n\n allowedValues?: string[];\n\n /**\n * A subset of suggested values for the user, which are some (but not all) of the possible `allowedValues`.\n *\n * This provides editor autocomplete (i.e. via our JSON Schema) but makes it possible to not be an exhaustive list, which is required by `allowedValues`, and may be further complicated by `patternMatch`.\n */\n suggestedValues?: string[];\n\n allowString?: boolean;\n\n cli?: boolean;\n\n description: string;\n\n env?: false | string;\n\n /**\n * Do not validate object children\n */\n freeChoice?: boolean;\n\n mergeable?: boolean;\n\n /**\n * Whether the configuration option has been autogenerated from Renovate's internals, and describes what type of module it's generated from.\n *\n * `manager` indicates that this was generated from a Manager's config object, from its `defaultConfig`.\n */\n autogenerated?: 'manager';\n\n name: string;\n\n parents?: AllowedParents[];\n\n /**\n * The kinds of place this option can be used, which are expanded alongside any `parents`.\n *\n * An option which declares neither is treated as valid anywhere, which is what we're working towards removing in #43020.\n */\n scopes?: ConfigScope[];\n\n stage?: RenovateConfigStage;\n\n experimental?: boolean;\n\n experimentalDescription?: string;\n\n experimentalIssues?: number[];\n\n advancedUse?: boolean;\n\n /**\n * This is used to add a deprecation message in the docs\n */\n deprecationMsg?: string;\n\n /**\n * For internal use only: add it to any config option that supports regex or glob matching\n */\n patternMatch?: boolean;\n\n /**\n * For internal use only: add it to any config option of type integer that supports negative integers\n */\n allowNegative?: boolean;\n\n /**\n * Whether the option can be set to `null`.\n *\n * This is only needed if the default is not `null` (which makes this implied).\n */\n nullable?: boolean;\n\n /**\n * Managers which support this option, leave undefined if all managers support it.\n */\n supportedManagers?: string[];\n\n /**\n * Platforms which support this option, leave undefined if all platforms support it.\n */\n supportedPlatforms?: PlatformId[];\n\n /**\n * Conditions that must be met for this option to be required.\n */\n requiredIf?: RenovateRequiredOption[];\n\n /**\n * If true, the option's value supports Renovate templating.\n * @see https://docs.renovatebot.com/templates/\n */\n supportsTemplating?: boolean;\n}\n\nexport interface RenovateRequiredOption {\n siblingProperties: { property: string; value: string }[];\n}\n\nexport interface RenovateArrayOption<\n T extends string | number | Record<string, unknown> = Record<string, unknown>,\n> extends RenovateOptionBase {\n default?: T[] | null;\n mergeable?: boolean;\n type: 'array';\n subType?: 'string' | 'object' | 'number';\n}\n\nexport interface RenovateStringArrayOption extends RenovateArrayOption<string> {\n format?: 'regex';\n subType: 'string';\n}\n\nexport interface RenovateNumberArrayOption extends RenovateArrayOption<number> {\n subType: 'number';\n}\n\nexport interface RenovateBooleanOption extends RenovateOptionBase {\n default?: boolean | null;\n type: 'boolean';\n}\n\nexport interface RenovateIntegerOption extends RenovateOptionBase {\n default?: number | null;\n type: 'integer';\n}\n\nexport interface RenovateStringOption extends RenovateOptionBase {\n default?: string | null;\n format?: 'regex';\n\n // Not used\n replaceLineReturns?: boolean;\n type: 'string';\n}\n\nexport interface RenovateObjectOption extends RenovateOptionBase {\n default?: any;\n additionalProperties?: Record<string, unknown> | boolean;\n\n /**\n * The keys the object accepts, for an option whose keys are a known set rather than the user's choice.\n */\n properties?: Record<string, unknown>;\n mergeable?: boolean;\n type: 'object';\n}\n\ntype RenovateOptionType =\n | RenovateStringOption\n | RenovateNumberArrayOption\n | RenovateStringArrayOption\n | RenovateIntegerOption\n | RenovateBooleanOption\n | RenovateArrayOption\n | RenovateObjectOption;\n\n/**\n * An option which can only be configured by people with access to the Renovate instance.\n *\n * It should be documented in docs/usage/self-hosted-configuration.md, and doesn't have to say where it can be used yet - see #43020.\n */\ninterface SelfHostedOption {\n globalOnly: true;\n scopes?: ConfigScope[];\n parents?: AllowedParents[];\n}\n\n/**\n * An option which a repository can configure, which has to say where it can be used, through either its `scopes` or its `parents`.\n */\ntype ConfigurableOption = { globalOnly?: false } & (\n | { scopes: ConfigScope[]; parents?: AllowedParents[] }\n | { parents: AllowedParents[]; scopes?: ConfigScope[] }\n);\n\nexport type RenovateOptions = RenovateOptionType &\n (SelfHostedOption | ConfigurableOption);\n\nexport interface PackageRuleInputConfig extends RenovateConfig {\n versioning?: string;\n packageFile?: string;\n lockFiles?: string[];\n depType?: string;\n depTypes?: string[];\n depName?: string;\n packageName?: string | null;\n newValue?: string | null;\n currentValue?: string | null;\n currentVersion?: string;\n lockedVersion?: string;\n updateType?: UpdateType;\n mergeConfidenceLevel?: MergeConfidence | undefined;\n isBump?: boolean;\n isBreaking?: boolean;\n sourceUrl?: string | null;\n categories?: string[];\n baseBranch?: string;\n manager?: string;\n datasource?: string;\n effectiveDatasource?: string;\n packageRules?: (PackageRule & PackageRuleInputConfig)[];\n releaseTimestamp?: Timestamp | null;\n repository?: string;\n currentVersionAgeInDays?: number;\n currentVersionTimestamp?: string;\n enabled?: boolean;\n skipReason?: SkipReason;\n skipStage?: StageName;\n}\n\nexport interface ConfigMigration {\n configMigration?: boolean;\n}\n\nexport interface MigratedConfig {\n /**\n * Indicates whether there was a migration applied to the configuration.\n *\n * @returns\n * `false` if the configuration does not need migrating, and `migratedConfig` can be ignored\n * `true` if the configuration was migrated, and if so, `migratedConfig` should be used instead of the provided config\n */\n isMigrated: boolean;\n migratedConfig: RenovateConfig;\n}\n\nexport interface MigratedRenovateConfig extends RenovateConfig {\n endpoints?: HostRule[];\n pathRules: PackageRule[];\n packages: PackageRule[];\n\n node?: RenovateConfig;\n travis?: RenovateConfig;\n gradle?: RenovateConfig;\n}\n\nexport interface ManagerConfig extends RenovateConfig {\n manager: string;\n categories?: Category[];\n}\n\nexport interface ValidationResult {\n errors: ValidationMessage[];\n warnings: ValidationMessage[];\n}\n\nexport interface BumpVersionConfig {\n bumpType?: string;\n filePatterns: string[];\n matchStrings: string[];\n name?: string;\n}\n\n/**\n * Global Config for specified `toolSettings` options.\n *\n */\nexport interface GlobalToolSettingsOptions {\n /** An upper limit on what the Java Virtual Machine's maximum memory can be set to. Repositories can specify <= this value */\n jvmMaxMemory?: number;\n /** An upper limit on what the Java Virtual Machine's starting memory can be set to. Repositories can specify <= this value */\n jvmMemory?: number;\n /** An upper limit on what the Node.JS process' maximum memory can be set to. Repositories can specify <= this value */\n nodeMaxMemory?: number;\n}\n\n/**\n * Repository config options for `toolSettings` options.\n */\nexport interface RepoToolSettingsOptions {\n /** The maximum memory the Java Virtual Machine can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n jvmMaxMemory?: number;\n /** The starting memory the Java Virtual Machine can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n jvmMemory?: number;\n /** The maximum memory child Node.JS processes can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n nodeMaxMemory?: number;\n}\n\n/** All known `VulnerabilityAlertSource`s */\nexport const VulnerabilityAlertSources = [\n /**\n * The Platform being used provides vulnerability alerts.\n *\n * i.e. GitHub Advanced Security's Dependabot Alerts\n **/\n '$platform',\n /**\n * The Open Source Vulnerability database (OSV) provides vulnerability alerts.\n *\n * @link https://github.com/renovatebot/osv-offline\n **/\n 'OSV',\n /**\n * A self-hosted administrator is providing any `packageRules` that will apply Vulnerability Alerts.\n *\n * @see PackageRule\n **/\n 'packageRules',\n] as const;\n\n/**\n * Where the Vulnerability Alerts are sourced from.\n */\nexport type VulnerabilityAlertSource =\n (typeof VulnerabilityAlertSources)[number];\n"],"mappings":";AAgDA,MAAa,+BAA+B;CAC1C;CACA;CACA;AACF;AA6SA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;AACF;AAuJA,MAAa,0BAA0B;CACrC;CACA;CACA;CACA;CACA;AACF;AAgDA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;AAmEA,MAAa,eAAe;CAE1B;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;AACF;;;;AAOA,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AA+SA,MAAa,4BAA4B;CAMvC;CAMA;CAMA;AACF"}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../lib/config/types.ts"],"sourcesContent":["import type { Category, PlatformId } from '../constants/index.ts';\nimport type { LogLevelRemap } from '../logger/types.ts';\nimport type {\n CustomManagerName,\n ManagerName,\n} from '../manager-list.generated.ts';\nimport type { CustomManager } from '../modules/manager/custom/types.ts';\nimport type {\n GitUrlOption,\n RepoSortMethod,\n SortMethod,\n} from '../modules/platform/types.ts';\nimport type {\n AutoMergeType,\n HostRule,\n Nullish,\n RangeStrategy,\n SkipReason,\n} from '../types/index.ts';\nimport type { StageName } from '../types/skip-reason.ts';\nimport type {\n AdditionalConstraintName,\n ConstraintName,\n ToolName,\n} from '../util/exec/types.ts';\nimport type { GitNoVerifyOption } from '../util/git/types.ts';\nimport type { MergeConfidence } from '../util/merge-confidence/types.ts';\nimport type { Timestamp } from '../util/timestamp.ts';\nimport type { ConfigValidationTopic } from './validation-helpers/types.ts';\n\nexport type RenovateConfigStage =\n 'global' | 'inherit' | 'repository' | 'package' | 'branch' | 'pr';\n\nexport type RenovateSplit =\n 'init' | 'onboarding' | 'extract' | 'lookup' | 'update';\n\nexport type RepositoryCacheConfig = 'disabled' | 'enabled' | 'reset';\nexport type RepositoryCacheType = 'local' | (string & {});\nexport type DryRunConfig = 'extract' | 'lookup' | 'full';\nexport type InternalHostAccess = 'allow' | 'warn' | 'block';\nexport type RequiredConfig = 'required' | 'optional' | 'ignored';\n\nexport interface GroupConfig extends Record<string, unknown> {\n branchName?: string;\n branchTopic?: string;\n}\n\nexport type RecreateWhen = 'auto' | 'never' | 'always';\nexport const allowedStatusCheckWhenValues = [\n 'always',\n 'never',\n 'failed',\n] as const;\nexport type StatusCheckWhen = (typeof allowedStatusCheckWhenValues)[number];\nexport type PlatformCommitOptions = 'auto' | 'disabled' | 'enabled';\n\nexport type BinarySource = 'docker' | 'global' | 'install' | 'hermit';\n\n// TODO: Proper typings\n/**\n * Any configuration that could be used either top-level in a repository config (or Global, Inherited or Shareable Preset configuration), or:\n *\n * - in a datasource-specific configuration\n * - in a manager-specific configuration\n * - in a Package Rule\n *\n * @see RenovateConfig for the superset of all configuration allowed in a given repository\n *\n */\nexport interface RenovateSharedConfig {\n $schema?: string;\n abandonmentThreshold?: Nullish<string>;\n addLabels?: string[];\n assignAutomerge?: boolean;\n autoApprove?: boolean;\n autoReplaceGlobalMatch?: boolean;\n automerge?: boolean;\n automergeSchedule?: string[];\n automergeStrategy?: MergeStrategy;\n automergeType?: AutoMergeType;\n azureWorkItemId?: number;\n azureWorkItemType?: string;\n branchName?: string;\n branchNameStrict?: boolean;\n branchPrefix?: string;\n branchPrefixOld?: string;\n bumpVersions?: BumpVersionConfig[];\n commitBody?: string;\n commitBodyTable?: boolean;\n commitMessage?: string;\n commitMessageAction?: string;\n commitMessageExtra?: string;\n commitMessageLowerCase?: 'auto' | 'never';\n commitMessagePrefix?: string;\n commitMessageTopic?: string;\n commitTrailers?: string[];\n confidential?: boolean;\n configValidationError?: boolean;\n changelogUrl?: string;\n dependencyDashboardApproval?: boolean;\n draftPR?: boolean;\n enabled?: boolean;\n enabledManagers?: string[];\n encrypted?: Record<string, string>;\n extends?: string[];\n extractVersion?: string;\n managerFilePatterns?: string[];\n followTag?: string;\n force?: RenovateConfig;\n gitIgnoredAuthors?: string[];\n group?: GroupConfig;\n groupName?: string;\n groupSingleUpdates?: boolean;\n groupSlug?: string;\n hashedBranchLength?: number;\n ignoreDeps?: string[];\n ignorePaths?: string[];\n ignoreTests?: boolean;\n ignoreUnstable?: boolean;\n includePaths?: string[];\n internalChecksAsSuccess?: boolean;\n internalChecksFilter?: 'strict' | 'flexible' | 'none';\n keepUpdatedLabel?: string;\n labels?: string[];\n manager?: string;\n milestone?: number;\n minimumReleaseAge?: Nullish<string>;\n minimumReleaseAgeBuffer?: Nullish<string>;\n npmrc?: string;\n npmrcMerge?: boolean;\n npmToken?: string;\n\n pinDigests?: boolean;\n platformAutomerge?: boolean;\n platformCommit?: PlatformCommitOptions;\n postUpgradeTasks?: PostUpgradeTasks;\n prBodyColumns?: string[];\n prBodyDefinitions?: Record<string, string>;\n prBodyHeadingDefinitions?: Record<string, string>;\n prBodyNotes?: string[];\n prCreation?: 'immediate' | 'not-pending' | 'status-success' | 'approval';\n prFooter?: string;\n prHeader?: string;\n prPriority?: number;\n prTitle?: string;\n prTitleStrict?: boolean;\n pruneBranchAfterAutomerge?: boolean;\n rangeStrategy?: RangeStrategy;\n rebaseLabel?: string;\n rebaseWhen?: string;\n recreateClosed?: boolean;\n recreateWhen?: RecreateWhen;\n repository?: string;\n repositoryCache?: RepositoryCacheConfig;\n repositoryCacheType?: RepositoryCacheType;\n respectLatest?: boolean;\n rollbackPrs?: boolean;\n schedule?: string[];\n semanticCommitScope?: string | null;\n semanticCommitType?: string;\n semanticCommits?: 'auto' | 'enabled' | 'disabled';\n separateMajorMinor?: boolean;\n separateMinorPatch?: boolean;\n separateMultipleMajor?: boolean;\n separateMultipleMinor?: boolean;\n skipArtifactsUpdate?: boolean;\n stopUpdatingLabel?: string;\n suppressNotifications?: string[];\n timezone?: string;\n unicodeEmoji?: boolean;\n updateNotScheduled?: boolean;\n versioning?: string;\n versionCompatibility?: string;\n}\n\n/**\n * Contains all options with globalOnly=true && inheritConfigSupport=true\n */\nexport interface GlobalInheritableConfig {\n bbUseDevelopmentBranch?: boolean;\n configFileNames?: string[];\n onboarding?: boolean;\n onboardingAutoCloseAge?: number;\n onboardingBranch?: string;\n onboardingCommitMessage?: string;\n onboardingConfig?: RenovateConfig;\n onboardingConfigFileName?: string;\n onboardingNoDeps?: 'auto' | 'enabled' | 'disabled';\n onboardingPrTitle?: string;\n requireConfig?: RequiredConfig;\n}\n\n// Config options used only within the global worker\n// The below should contain config options where stage=global\n/** @deprecated use `RepoGlobalConfig` instead **/\nexport interface GlobalOnlyConfigLegacy {\n autodiscover?: boolean;\n autodiscoverFilter?: string[] | string;\n autodiscoverNamespaces?: string[];\n autodiscoverProjects?: string[];\n autodiscoverTopics?: string[];\n baseDir?: string;\n cacheDir?: string;\n containerbaseDir?: string;\n detectHostRulesFromEnv?: boolean;\n dockerCliOptions?: string;\n endpoint?: string;\n exitCodeForErrors?: boolean;\n forceCli?: boolean;\n gitNoVerify?: GitNoVerifyOption[];\n gitPrivateKey?: string;\n gitPrivateKeyPassphrase?: string;\n globalExtends?: string[];\n mergeConfidenceDatasources?: string[];\n mergeConfidenceEndpoint?: string;\n platform?: PlatformId;\n processEnv?: Record<string, string>;\n prCommitsPerRunLimit?: number;\n privateKey?: string;\n privateKeyOld?: string;\n privateKeyPath?: string;\n privateKeyPathOld?: string;\n redisPrefix?: string;\n redisUrl?: string;\n repositories?: RenovateRepository[];\n useCloudMetadataServices?: boolean;\n deleteConfigFile?: boolean;\n deleteAdditionalConfigFile?: boolean;\n}\n\n/**\n * Any global-only configuration set by self-hosted administrators.\n *\n * Used within the repository worker.\n *\n * Should only contain config options where globalOnly=true.\n */\nexport interface RepoGlobalConfig extends GlobalInheritableConfig {\n allowedCommands?: string[];\n allowCustomCrateGitRegistries?: boolean;\n allowPlugins?: boolean;\n allowScripts?: boolean;\n allowShellExecutorForPostUpgradeCommands?: boolean;\n allowedEnv?: string[];\n allowedHeaders?: string[];\n binarySource?: BinarySource;\n cacheDir?: string;\n cacheHardTtlMinutes?: number;\n cacheTtlOverride?: Record<string, number>;\n checkedBranches?: string[];\n containerbaseDir?: string;\n customEnvVariables?: Record<string, string>;\n dockerChildPrefix?: string;\n dockerCliOptions?: string;\n dockerSidecarImage?: string;\n dockerUser?: string;\n dryRun?: DryRunConfig;\n encryptedWarning?: string;\n endpoint?: string;\n executionTimeout?: number;\n exposeAllEnv?: boolean;\n gitTimeout?: number;\n githubTokenWarn?: boolean;\n goEnvFromHostRules?: boolean;\n includeMirrors?: boolean;\n inheritConfigTrusted?: boolean;\n internalHostAccess?: InternalHostAccess;\n migratePresets?: Record<string, string>;\n platform?: PlatformId;\n prCacheSyncMaxPages?: number;\n presetCachePersistence?: boolean;\n httpCacheTtlDays?: number;\n autodiscoverRepoSort?: RepoSortMethod;\n autodiscoverRepoOrder?: SortMethod;\n userAgent?: string;\n dockerMaxPages?: number;\n s3Endpoint?: string;\n s3PathStyle?: boolean;\n cachePrivatePackages?: boolean;\n repositoryCacheForceLocal?: boolean;\n configFileNames?: string[];\n ignorePrAuthor?: boolean;\n allowedUnsafeExecutions?: AllowedUnsafeExecution[];\n onboardingAutoCloseAge?: number;\n productLinks?: Record<string, string>;\n rebaseAllOpenBranches?: boolean;\n toolSettings?: GlobalToolSettingsOptions;\n}\n\n/**\n * Internal variables which are referenced from `GlobalConfig`, but are *not* user-configurable options.\n */\nexport interface InternalGlobalConfigOptions {\n localDir?: string;\n}\n\n/**\n * Those options are global only but still passed into the repository worker config.\n *\n * @deprecated https://github.com/renovatebot/renovate/issues/39693\n */\nexport interface LegacyAdminConfig {\n baseDir?: string;\n localDir?: string;\n\n logContext?: string;\n\n onboarding?: boolean;\n onboardingBranch?: string;\n onboardingNoDeps?: 'auto' | 'enabled' | 'disabled';\n onboardingRebaseCheckbox?: boolean;\n onboardingConfig?: RenovateConfig;\n onboardingConfigFileName?: string;\n\n optimizeForDisabled?: boolean;\n\n persistRepoData?: boolean;\n\n prCommitsPerRunLimit?: number;\n\n requireConfig?: RequiredConfig;\n\n useCloudMetadataServices?: boolean;\n\n writeDiscoveredRepos?: string;\n}\n\nexport type ExecutionMode = 'branch' | 'update';\n\nexport interface PostUpgradeTasks {\n commands?: string[];\n workingDirTemplate?: string;\n dataFileTemplate?: string;\n fileFilters?: string[];\n executionMode: ExecutionMode;\n installTools?: Partial<Record<ToolName, Record<never, never>>>;\n}\n\nexport type UpdateConfig<\n T extends RenovateSharedConfig = RenovateSharedConfig,\n> = Partial<Record<UpdateType, T | null>>;\n\nexport type RenovateRepositoryEntry = AllConfig & {\n repository: string;\n};\n\nexport type RenovateRepository = string | RenovateRepositoryEntry;\n\nexport type UseBaseBranchConfigType = 'merge' | 'merge-if-present' | 'none';\nexport type ConstraintsFilter = 'strict' | 'none';\nexport type MinimumReleaseAgeBehaviour =\n 'timestamp-required' | 'timestamp-optional';\n\nexport const allowedStatusCheckStrings = [\n 'minimumReleaseAge',\n 'mergeConfidence',\n 'configValidation',\n 'artifactError',\n] as const;\nexport type StatusCheckKey = (typeof allowedStatusCheckStrings)[number];\ntype UserEnv = Record<string, string>;\n\n/**\n * Computed properties, for internal use only\n */\nexport interface RenovateInternalConfig {\n /** computed base branch from patterns - for internal use only */\n baseBranches?: string[];\n currentCompatibility?: string;\n datasource?: string;\n hasBaseBranches?: boolean;\n isFork?: boolean;\n isVulnerabilityAlert?: boolean;\n\n /** What is this used for? */\n remediations?: unknown;\n /** What is this used for? */\n vulnerabilityAlertsOnly?: boolean;\n}\n\n// TODO: Proper typings\n/**\n * Configuration that could be used either top-level in a repository config (or Global, Inherited or Shareable Preset configuration).\n *\n * This is a superset of any configuration that a Renovate user (not self-hosted administrator) can set.\n */\nexport interface RenovateConfig\n extends\n LegacyAdminConfig,\n RenovateSharedConfig,\n UpdateConfig<PackageRule>,\n AssigneesAndReviewersConfig,\n ConfigMigration,\n RenovateInternalConfig {\n s3Endpoint?: string;\n s3PathStyle?: boolean;\n reportFormatting?: boolean;\n reportPath?: string;\n reportType?: 'logging' | 'file' | 's3' | null;\n depName?: string;\n /** user configurable base branch patterns*/\n baseBranchPatterns?: string[];\n useBaseBranchConfig?: UseBaseBranchConfigType;\n baseBranch?: string;\n defaultBranch?: string;\n branchList?: string[];\n cloneSubmodules?: boolean;\n cloneSubmodulesFilter?: string[];\n description?: string | string[];\n overrideDescription?: string | string[];\n detectGlobalManagerConfig?: boolean;\n errors?: ValidationMessage[];\n forkModeDisallowMaintainerEdits?: boolean;\n forkProcessing?: 'auto' | 'enabled' | 'disabled';\n forkToken?: string;\n\n gitAuthor?: string;\n\n hostRules?: HostRule[];\n\n inheritConfig?: boolean;\n inheritConfigFileName?: string;\n inheritConfigRepoName?: string;\n inheritConfigStrict?: boolean;\n\n ignorePresets?: string[];\n\n fileList?: string[];\n configWarningReuseIssue?: boolean;\n dependencyDashboard?: DependencyDashboardConfig;\n dependencyDashboardChecks?: Record<string, string>;\n dependencyDashboardIssue?: number;\n mode?: 'silent' | 'full';\n packageFile?: string;\n packageRules?: PackageRule[];\n postUpdateOptions?: string[];\n branchConcurrentLimit?: number | null;\n parentOrg?: string;\n prConcurrentLimit?: number;\n commitHourlyLimit?: number;\n prHourlyLimit?: number;\n\n printConfig?: boolean;\n\n pruneStaleBranches?: boolean;\n\n defaultRegistryUrls?: string[];\n registryUrls?: string[] | null;\n registryAliases?: Record<string, string>;\n\n /**\n * What is this used for?\n * @deprecated\n */\n renovateJsonPresent?: boolean;\n\n repoIsOnboarded?: boolean;\n repoIsActivated?: boolean;\n\n topLevelOrg?: string;\n updateInternalDeps?: boolean;\n updateType?: UpdateType;\n\n warnings?: ValidationMessage[];\n vulnerabilityAlerts?: RenovateSharedConfig;\n osvVulnerabilityAlerts?: boolean;\n vulnerabilitySeverity?: string;\n customManagers?: CustomManager[];\n customDatasources?: Record<string, CustomDatasourceConfig>;\n\n fetchChangeLogs?: FetchChangeLogsOptions;\n secrets?: Record<string, string>;\n variables?: Record<string, string>;\n\n constraints?: Partial<Record<ConstraintName, string>>;\n /**\n * Any specific overrides for the versioning for the `AdditionalConstraintName`s.\n */\n constraintsVersioning?: Partial<Record<AdditionalConstraintName, string>>;\n skipInstalls?: boolean | null;\n\n constraintsFiltering?: ConstraintsFilter;\n\n statusCheckNames?: Record<StatusCheckKey, string | null>;\n statusCheckWhen?: Partial<Record<StatusCheckKey, StatusCheckWhen>>;\n /**\n * User configured environment variables that Renovate uses when executing package manager commands\n */\n env?: UserEnv;\n logLevelRemap?: LogLevelRemap[];\n\n branchTopic?: string;\n additionalBranchPrefix?: string;\n sharedVariableName?: string;\n minimumGroupSize?: number;\n configFileNames?: string[];\n minimumReleaseAgeBehaviour?: MinimumReleaseAgeBehaviour;\n toolSettings?: RepoToolSettingsOptions;\n}\n\nexport const CustomDatasourceFormats = [\n 'html',\n 'json',\n 'plain',\n 'toml',\n 'yaml',\n] as const;\nexport type CustomDatasourceFormats = (typeof CustomDatasourceFormats)[number];\n\nexport interface CustomDatasourceConfig {\n defaultRegistryUrlTemplate?: string;\n format?: CustomDatasourceFormats;\n transformTemplates?: string[];\n}\n\n/**\n * The superset of all configuration that a self-hosted administrator can set, alongside all repository-level configuration.\n *\n */\nexport interface AllConfig\n extends RenovateConfig, GlobalOnlyConfigLegacy, RepoGlobalConfig {\n gitUrl?: GitUrlOption;\n password?: string;\n token?: string;\n username?: string;\n}\n\nexport interface AssigneesAndReviewersConfig {\n assigneesFromCodeOwners?: boolean;\n expandCodeOwnersGroups?: boolean;\n assignees?: string[];\n assigneesSampleSize?: number;\n ignoreReviewers?: string[];\n reviewersFromCodeOwners?: boolean;\n reviewers?: string[];\n reviewersSampleSize?: number;\n additionalReviewers?: string[];\n filterUnavailableUsers?: boolean;\n}\n\nexport type UpdateType =\n | 'major'\n | 'minor'\n | 'patch'\n | 'pin'\n | 'digest'\n | 'pinDigest'\n | 'lockFileMaintenance'\n | 'lockfileUpdate'\n | 'rollback'\n | 'bump'\n | 'replacement';\n\n// These are the update types which can have configuration\nexport const UpdateTypesOptions = [\n 'major',\n 'minor',\n 'patch',\n 'pin',\n 'digest',\n 'pinDigest',\n 'lockFileMaintenance',\n 'rollback',\n 'replacement',\n] as const;\n\nexport type UpdateTypeOptions = (typeof UpdateTypesOptions)[number];\n\nexport type FetchChangeLogsOptions = 'off' | 'branch' | 'pr';\n\nexport type MatchStringsStrategy = 'any' | 'recursive' | 'combination';\n\nexport type MergeStrategy =\n | 'auto'\n | 'fast-forward'\n | 'merge-commit'\n | 'rebase'\n | 'rebase-merge'\n | 'squash';\n\n// This list should be added to as any new unsafe execution commands should be permitted\nexport type AllowedUnsafeExecution =\n 'bazelModDeps' | 'goGenerate' | 'gradleWrapper' | 'mise' | 'pixi';\n\n// TODO: Proper typings\nexport interface PackageRule\n extends RenovateSharedConfig, RenovateInternalConfig, UpdateConfig {\n allowedVersions?: string;\n description?: string | string[];\n matchBaseBranches?: string[];\n matchCategories?: string[];\n matchConfidence?: MergeConfidence[];\n matchCurrentAge?: string;\n matchCurrentValue?: string;\n matchCurrentVersion?: string;\n matchDatasources?: string[];\n matchDepNames?: string[];\n matchDepTypes?: string[];\n matchFileNames?: string[];\n matchIsBreaking?: boolean;\n matchManagers?: string[];\n matchNewValue?: string;\n matchPackageNames?: string[];\n matchRepositories?: string[];\n matchSourceUrls?: string[];\n matchRegistryUrls?: string[];\n matchUpdateTypes?: UpdateType[];\n matchJsonata?: string[];\n overrideDatasource?: string;\n overrideDepName?: string;\n overridePackageName?: string;\n registryUrls?: string[] | null;\n replacementName?: string;\n replacementVersion?: string;\n sourceUrl?: string;\n sourceDirectory?: string;\n vulnerabilitySeverity?: string;\n vulnerabilityFixVersion?: string;\n}\n\nexport interface ValidationMessage {\n // Topic is either the known list of topics, or a dynamically generated one\n topic: ConfigValidationTopic | (string & {});\n message: string;\n}\n\n/**\n * The kinds of place a config option can be used, which expand to the {@link AllowedParents} they cover.\n *\n * These are for the places which can't reasonably be listed, like every manager or every update type, so an option which is only valid in a specific object - like `hostRules` - should use `parents` instead.\n */\nexport const configScopes = [\n /** the top level of a repository, global, inherited or preset config */\n 'repo',\n /** a `packageRules` entry */\n 'packageRule',\n /** a manager's configuration object, like `npm` */\n 'manager',\n /** an update type's configuration object, like `major` */\n 'updateType',\n /** the `vulnerabilityAlerts` configuration object */\n 'vulnerabilityAlert',\n /** the `group` configuration object, which is merged into an update when it's grouped */\n 'group',\n /** every object a config can be nested in, for the options which are read wherever they're found */\n 'any',\n] as const;\n\nexport type ConfigScope = (typeof configScopes)[number];\n\n/**\n * The objects which a config can be nested in, other than the top level and the ones which are covered by a {@link ConfigScope}.\n */\nexport const namedParents = [\n 'bumpVersions',\n 'customDatasources',\n 'customManagers',\n 'dependencyDashboard',\n 'group',\n 'hostRules',\n 'logLevelRemap',\n 'packageRules',\n 'postUpgradeTasks',\n 'toolSettings',\n 'vulnerabilityAlerts',\n] as const;\n\nexport type AllowedParents =\n | '.'\n | (typeof namedParents)[number]\n | ManagerName\n | CustomManagerName\n | UpdateTypeOptions;\nexport interface RenovateOptionBase {\n /**\n * If true, this option **MUST** be checked at the trust boundary: after resolving the full config that sets it, but **before** the value is applied.\n *\n * This is in addition to any existing config validation, and ensures that these options are re-validated due to their sensitive nature.\n *\n * A failure of that check **must** lead to a {@link ConfigValidationTopic.Security} error (which is then a full config validation error), stopping the Renovate run.\n *\n * After this check has been performed, additional filtering (for defense in depth) could be performed, but may not have an indication of what is repo- or preset-config vs global self-hosted config.\n */\n requiresCheckAtTrustBoundary?: boolean;\n\n inheritConfigSupport?: boolean;\n\n allowedValues?: string[];\n\n /**\n * A subset of suggested values for the user, which are some (but not all) of the possible `allowedValues`.\n *\n * This provides editor autocomplete (i.e. via our JSON Schema) but makes it possible to not be an exhaustive list, which is required by `allowedValues`, and may be further complicated by `patternMatch`.\n */\n suggestedValues?: string[];\n\n allowString?: boolean;\n\n cli?: boolean;\n\n description: string;\n\n env?: false | string;\n\n /**\n * Do not validate object children\n */\n freeChoice?: boolean;\n\n mergeable?: boolean;\n\n /**\n * Whether the configuration option has been autogenerated from Renovate's internals, and describes what type of module it's generated from.\n *\n * `manager` indicates that this was generated from a Manager's config object, from its `defaultConfig`.\n */\n autogenerated?: 'manager';\n\n name: string;\n\n parents?: AllowedParents[];\n\n /**\n * The kinds of place this option can be used, which are expanded alongside any `parents`.\n *\n * An option which declares neither is treated as valid anywhere, which is what we're working towards removing in #43020.\n */\n scopes?: ConfigScope[];\n\n stage?: RenovateConfigStage;\n\n experimental?: boolean;\n\n experimentalDescription?: string;\n\n experimentalIssues?: number[];\n\n advancedUse?: boolean;\n\n /**\n * This is used to add a deprecation message in the docs\n */\n deprecationMsg?: string;\n\n /**\n * For internal use only: add it to any config option that supports regex or glob matching\n */\n patternMatch?: boolean;\n\n /**\n * For internal use only: add it to any config option of type integer that supports negative integers\n */\n allowNegative?: boolean;\n\n /**\n * Whether the option can be set to `null`.\n *\n * This is only needed if the default is not `null` (which makes this implied).\n */\n nullable?: boolean;\n\n /**\n * Managers which support this option, leave undefined if all managers support it.\n */\n supportedManagers?: string[];\n\n /**\n * Platforms which support this option, leave undefined if all platforms support it.\n */\n supportedPlatforms?: PlatformId[];\n\n /**\n * Conditions that must be met for this option to be required.\n */\n requiredIf?: RenovateRequiredOption[];\n\n /**\n * If true, the option's value supports Renovate templating.\n * @see https://docs.renovatebot.com/templates/\n */\n supportsTemplating?: boolean;\n}\n\nexport interface RenovateRequiredOption {\n siblingProperties: { property: string; value: string }[];\n}\n\nexport interface RenovateArrayOption<\n T extends string | number | Record<string, unknown> = Record<string, unknown>,\n> extends RenovateOptionBase {\n default?: T[] | null;\n mergeable?: boolean;\n type: 'array';\n subType?: 'string' | 'object' | 'number';\n}\n\nexport interface RenovateStringArrayOption extends RenovateArrayOption<string> {\n format?: 'regex';\n subType: 'string';\n}\n\nexport interface RenovateNumberArrayOption extends RenovateArrayOption<number> {\n subType: 'number';\n}\n\nexport interface RenovateBooleanOption extends RenovateOptionBase {\n default?: boolean | null;\n type: 'boolean';\n}\n\nexport interface RenovateIntegerOption extends RenovateOptionBase {\n default?: number | null;\n type: 'integer';\n}\n\nexport interface RenovateStringOption extends RenovateOptionBase {\n default?: string | null;\n format?: 'regex';\n\n // Not used\n replaceLineReturns?: boolean;\n type: 'string';\n}\n\nexport interface RenovateObjectOption extends RenovateOptionBase {\n default?: any;\n additionalProperties?: Record<string, unknown> | boolean;\n\n /**\n * The keys the object accepts, for an option whose keys are a known set rather than the user's choice.\n */\n properties?: Record<string, unknown>;\n mergeable?: boolean;\n type: 'object';\n}\n\ntype RenovateOptionType =\n | RenovateStringOption\n | RenovateNumberArrayOption\n | RenovateStringArrayOption\n | RenovateIntegerOption\n | RenovateBooleanOption\n | RenovateArrayOption\n | RenovateObjectOption;\n\n/**\n * An option which can only be configured by people with access to the Renovate instance.\n *\n * It should be documented in docs/usage/self-hosted-configuration.md, and doesn't have to say where it can be used yet - see #43020.\n */\ninterface SelfHostedOption {\n globalOnly: true;\n scopes?: ConfigScope[];\n parents?: AllowedParents[];\n}\n\n/**\n * An option which a repository can configure, which has to say where it can be used, through either its `scopes` or its `parents`.\n */\ntype ConfigurableOption = { globalOnly?: false } & (\n | { scopes: ConfigScope[]; parents?: AllowedParents[] }\n | { parents: AllowedParents[]; scopes?: ConfigScope[] }\n);\n\nexport type RenovateOptions = RenovateOptionType &\n (SelfHostedOption | ConfigurableOption);\n\nexport interface PackageRuleInputConfig extends RenovateConfig {\n versioning?: string;\n packageFile?: string;\n lockFiles?: string[];\n depType?: string;\n depTypes?: string[];\n depName?: string;\n packageName?: string | null;\n newValue?: string | null;\n currentValue?: string | null;\n currentVersion?: string;\n lockedVersion?: string;\n updateType?: UpdateType;\n mergeConfidenceLevel?: MergeConfidence | undefined;\n isBump?: boolean;\n isBreaking?: boolean;\n sourceUrl?: string | null;\n categories?: string[];\n baseBranch?: string;\n manager?: string;\n datasource?: string;\n effectiveDatasource?: string;\n packageRules?: (PackageRule & PackageRuleInputConfig)[];\n releaseTimestamp?: Timestamp | null;\n repository?: string;\n currentVersionAgeInDays?: number;\n currentVersionTimestamp?: string;\n enabled?: boolean;\n skipReason?: SkipReason;\n skipStage?: StageName;\n}\n\nexport interface ConfigMigration {\n configMigration?: boolean;\n}\n\nexport interface MigratedConfig {\n /**\n * Indicates whether there was a migration applied to the configuration.\n *\n * @returns\n * `false` if the configuration does not need migrating, and `migratedConfig` can be ignored\n * `true` if the configuration was migrated, and if so, `migratedConfig` should be used instead of the provided config\n */\n isMigrated: boolean;\n migratedConfig: RenovateConfig;\n}\n\nexport interface MigratedRenovateConfig extends RenovateConfig {\n endpoints?: HostRule[];\n pathRules: PackageRule[];\n packages: PackageRule[];\n\n node?: RenovateConfig;\n travis?: RenovateConfig;\n gradle?: RenovateConfig;\n}\n\nexport interface ManagerConfig extends RenovateConfig {\n manager: string;\n categories?: Category[];\n}\n\nexport interface ValidationResult {\n errors: ValidationMessage[];\n warnings: ValidationMessage[];\n}\n\nexport interface DependencyDashboardConfig {\n enabled?: boolean;\n autoclose?: boolean;\n title?: string;\n header?: string;\n footer?: string;\n labels?: string[];\n osvVulnerabilitySummary?: 'none' | 'all' | 'unresolved';\n reportAbandonment?: boolean;\n customize?: Record<string, string>;\n}\n\nexport interface BumpVersionConfig {\n bumpType?: string;\n filePatterns: string[];\n matchStrings: string[];\n name?: string;\n}\n\n/**\n * Global Config for specified `toolSettings` options.\n *\n */\nexport interface GlobalToolSettingsOptions {\n /** An upper limit on what the Java Virtual Machine's maximum memory can be set to. Repositories can specify <= this value */\n jvmMaxMemory?: number;\n /** An upper limit on what the Java Virtual Machine's starting memory can be set to. Repositories can specify <= this value */\n jvmMemory?: number;\n /** An upper limit on what the Node.JS process' maximum memory can be set to. Repositories can specify <= this value */\n nodeMaxMemory?: number;\n}\n\n/**\n * Repository config options for `toolSettings` options.\n */\nexport interface RepoToolSettingsOptions {\n /** The maximum memory the Java Virtual Machine can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n jvmMaxMemory?: number;\n /** The starting memory the Java Virtual Machine can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n jvmMemory?: number;\n /** The maximum memory child Node.JS processes can use. If greater than the Global Self-Hosted configuration setting, it will be set to that limit **/\n nodeMaxMemory?: number;\n}\n\n/** All known `VulnerabilityAlertSource`s */\nexport const VulnerabilityAlertSources = [\n /**\n * The Platform being used provides vulnerability alerts.\n *\n * i.e. GitHub Advanced Security's Dependabot Alerts\n **/\n '$platform',\n /**\n * The Open Source Vulnerability database (OSV) provides vulnerability alerts.\n *\n * @link https://github.com/renovatebot/osv-offline\n **/\n 'OSV',\n /**\n * A self-hosted administrator is providing any `packageRules` that will apply Vulnerability Alerts.\n *\n * @see PackageRule\n **/\n 'packageRules',\n] as const;\n\n/**\n * Where the Vulnerability Alerts are sourced from.\n */\nexport type VulnerabilityAlertSource =\n (typeof VulnerabilityAlertSources)[number];\n"],"mappings":";AAgDA,MAAa,+BAA+B;CAC1C;CACA;CACA;AACF;AA6SA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;AACF;AA8IA,MAAa,0BAA0B;CACrC;CACA;CACA;CACA;CACA;AACF;AAgDA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;AAmEA,MAAa,eAAe;CAE1B;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;AACF;;;;AAOA,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AA2TA,MAAa,4BAA4B;CAMvC;CAMA;CAMA;AACF"}
|
|
@@ -787,7 +787,8 @@ function describeAllowedValues(option) {
|
|
|
787
787
|
const allowedValues = coerceArray(option.allowedValues);
|
|
788
788
|
if (allowedValues.length > 10) {
|
|
789
789
|
const page = option.globalOnly ? "self-hosted-configuration" : "configuration-options";
|
|
790
|
-
|
|
790
|
+
const heading = option.parents?.length === 1 ? `${option.parents[0]}${option.name}` : option.name;
|
|
791
|
+
return `allowedValues, which are listed at ${GlobalConfig.get("productLinks").documentation}${page}/#${heading.toLowerCase()}`;
|
|
791
792
|
}
|
|
792
793
|
return `allowedValues: ${JSON.stringify(allowedValues)}`;
|
|
793
794
|
}
|