diff --git a/lib/config/definitions.js b/lib/config/definitions.js index c1672a5c5bf984e7de1d89007afa435c13366533..90eefb9416f803a12b372279815b72b0b9c8b9ed 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -706,7 +706,7 @@ const options = [ description: 'Create PRs to roll back versions if the current version is not found in the registry', type: 'boolean', - default: true, + default: false, }, { name: 'recreateClosed', @@ -999,6 +999,7 @@ const options = [ type: 'json', default: { fileMatch: ['(^|/)package.json$'], + rollbackPrs: true, versionScheme: 'npm', }, mergeable: true, @@ -1019,7 +1020,6 @@ const options = [ stage: 'package', type: 'json', default: { - rollbackPrs: false, fileMatch: ['(^|/)WORKSPACE$'], prBodyDefinitions: { Change: @@ -1048,7 +1048,6 @@ const options = [ stage: 'package', type: 'json', default: { - rollbackPrs: false, commitMessageTopic: 'module {{depNameShort}}', }, mergeable: true, @@ -1181,7 +1180,6 @@ const options = [ managerBranchPrefix: 'docker-', commitMessageTopic: '{{{depName}}} Docker tag', major: { enabled: false }, - rollbackPrs: false, commitMessageExtra: 'to v{{#if isMajor}}{{{newMajor}}}{{else}}{{{newVersion}}}{{/if}}', digest: { diff --git a/test/workers/repository/process/lookup/index.spec.js b/test/workers/repository/process/lookup/index.spec.js index 1683b30e536169c30bdc7001069528eb9993f84d..49d325da452b4508d34f41d611a20768be0a2aaf 100644 --- a/test/workers/repository/process/lookup/index.spec.js +++ b/test/workers/repository/process/lookup/index.spec.js @@ -30,6 +30,7 @@ describe('workers/repository/process/lookup', () => { config.currentValue = '0.9.99'; config.depName = 'q'; config.purl = 'pkg:npm/q'; + config.rollbackPrs = true; nock('https://registry.npmjs.org') .get('/q') .reply(200, qJson); @@ -39,6 +40,7 @@ describe('workers/repository/process/lookup', () => { config.currentValue = '^0.9.99'; config.depName = 'q'; config.purl = 'pkg:npm/q'; + config.rollbackPrs = true; nock('https://registry.npmjs.org') .get('/q') .reply(200, qJson); @@ -725,6 +727,7 @@ describe('workers/repository/process/lookup', () => { config.depName = 'typescript'; config.purl = 'pkg:npm/typescript'; config.followTag = 'insiders'; + config.rollbackPrs = true; nock('https://registry.npmjs.org') .get('/typescript') .reply(200, typescriptJson); @@ -797,6 +800,7 @@ describe('workers/repository/process/lookup', () => { config.currentValue = '1.16.1'; config.depName = 'coffeelint'; config.purl = 'pkg:npm/coffeelint'; + config.rollbackPrs = true; nock('https://registry.npmjs.org') .get('/coffeelint') .reply(200, coffeelintJson);