fix(config): autodetectPinVersions -> autodetectRangeStrategy (#19933)

This commit is contained in:
Rhys Arkins 2023-01-20 12:48:00 +01:00 committed by GitHub
parent 8c44d6bd10
commit 8d19f05b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 12 additions and 11 deletions

View file

@ -1,4 +1,5 @@
export const removedPresets: Record<string, string | null> = { export const removedPresets: Record<string, string | null> = {
':autodetectPinVersions': ':autodetectRangeStrategy',
':automergeBranchMergeCommit': ':automergeBranch', ':automergeBranchMergeCommit': ':automergeBranch',
':automergeBranchPush': ':automergeBranch', ':automergeBranchPush': ':automergeBranch',
':base': 'config:base', ':base': 'config:base',

View file

@ -839,7 +839,7 @@ describe('config/presets/index', () => {
':dependencyDashboard', ':dependencyDashboard',
':semanticPrefixFixDepsChoreOthers', ':semanticPrefixFixDepsChoreOthers',
':ignoreModulesAndTests', ':ignoreModulesAndTests',
':autodetectPinVersions', ':autodetectRangeStrategy',
':prHourlyLimit2', ':prHourlyLimit2',
':prConcurrentLimit10', ':prConcurrentLimit10',
'group:monorepos', 'group:monorepos',

View file

@ -9,7 +9,7 @@ export const presets: Record<string, Preset> = {
':dependencyDashboard', ':dependencyDashboard',
':semanticPrefixFixDepsChoreOthers', ':semanticPrefixFixDepsChoreOthers',
':ignoreModulesAndTests', ':ignoreModulesAndTests',
':autodetectPinVersions', ':autodetectRangeStrategy',
':prHourlyLimit2', ':prHourlyLimit2',
':prConcurrentLimit10', ':prConcurrentLimit10',
'group:monorepos', 'group:monorepos',

View file

@ -10,8 +10,8 @@ export const presets: Record<string, Preset> = {
assignees: ['{{arg0}}'], assignees: ['{{arg0}}'],
description: 'Assign PRs to `{{arg0}}`.', description: 'Assign PRs to `{{arg0}}`.',
}, },
autodetectPinVersions: { autodetectRangeStrategy: {
description: 'Autodetect whether to pin dependencies or maintain ranges.', description: 'Automatically detect the best rangeStrategy to use.',
rangeStrategy: 'auto', rangeStrategy: 'auto',
}, },
automergeAll: { automergeAll: {

View file

@ -1,4 +1,4 @@
{ {
"filename": "renovate.json", "filename": "renovate.json",
"content": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectPinVersions\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\"main\"]\n}\n" "content": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectRangeStrategy\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\"main\"]\n}\n"
} }

View file

@ -1,5 +1,5 @@
{ {
"content": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectPinVersions\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\n \"main\"\n ]\n}\n", "content": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectRangeStrategy\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\n \"main\"\n ]\n}\n",
"filename": "renovate.json", "filename": "renovate.json",
"indent": { "indent": {
"amount": 2, "amount": 2,

View file

@ -1,5 +1,5 @@
{ {
"content": "{\n extends: [\n ':separateMajorReleases',\n ':prImmediately',\n ':renovatePrefix',\n ':semanticPrefixFixDepsChoreOthers',\n ':updateNotScheduled',\n ':automergeDisabled',\n ':maintainLockFilesDisabled',\n ':autodetectPinVersions',\n 'group:monorepos',\n ],\n onboarding: false,\n rangeStrategy: 'replace',\n semanticCommits: 'enabled',\n timezone: 'US/Central',\n baseBranches: [\n 'main',\n ],\n}\n", "content": "{\n extends: [\n ':separateMajorReleases',\n ':prImmediately',\n ':renovatePrefix',\n ':semanticPrefixFixDepsChoreOthers',\n ':updateNotScheduled',\n ':automergeDisabled',\n ':maintainLockFilesDisabled',\n ':autodetectRangeStrategy',\n 'group:monorepos',\n ],\n onboarding: false,\n rangeStrategy: 'replace',\n semanticCommits: 'enabled',\n timezone: 'US/Central',\n baseBranches: [\n 'main',\n ],\n}\n",
"filename": "renovate.json5", "filename": "renovate.json5",
"indent": { "indent": {
"amount": 2, "amount": 2,

View file

@ -7,7 +7,7 @@
":updateNotScheduled", ":updateNotScheduled",
":automergeDisabled", ":automergeDisabled",
":maintainLockFilesDisabled", ":maintainLockFilesDisabled",
":autodetectPinVersions", ":autodetectRangeStrategy",
"group:monorepos" "group:monorepos"
], ],
"onboarding": false, "onboarding": false,

View file

@ -8,7 +8,7 @@
":updateNotScheduled", ":updateNotScheduled",
":automergeDisabled", ":automergeDisabled",
":maintainLockFilesDisabled", ":maintainLockFilesDisabled",
":autodetectPinVersions", ":autodetectRangeStrategy",
"group:monorepos", "group:monorepos",
"helpers:oddIsUnstablePackages" "helpers:oddIsUnstablePackages"
], ],

View file

@ -7,7 +7,7 @@
':updateNotScheduled', ':updateNotScheduled',
':automergeDisabled', ':automergeDisabled',
':maintainLockFilesDisabled', ':maintainLockFilesDisabled',
':autodetectPinVersions', ':autodetectRangeStrategy',
'group:monorepos', 'group:monorepos',
'helpers:oddIsUnstablePackages' 'helpers:oddIsUnstablePackages'
], ],

View file

@ -1,4 +1,4 @@
{ {
"configFileName": "renovate.json", "configFileName": "renovate.json",
"migratedContent": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectPinVersions\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\n \"main\"\n ]\n}\n" "migratedContent": "{\n \"extends\": [\n \":separateMajorReleases\",\n \":prImmediately\",\n \":renovatePrefix\",\n \":semanticPrefixFixDepsChoreOthers\",\n \":updateNotScheduled\",\n \":automergeDisabled\",\n \":maintainLockFilesDisabled\",\n \":autodetectRangeStrategy\",\n \"group:monorepos\"\n ],\n \"onboarding\": false,\n \"rangeStrategy\": \"replace\",\n \"semanticCommits\": \"enabled\",\n \"timezone\": \"US/Central\",\n \"baseBranches\": [\n \"main\"\n ]\n}\n"
} }