diff --git a/lib/config/definitions.js b/lib/config/definitions.js index a76b6fbec366761d3671a68be4b88028e2896531..a06524bad6b06d1f295139706a143f3c2d8611ab 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -1168,7 +1168,10 @@ const options = [ Package: '{{{depName}}}', Type: '{{{depType}}}', Update: '{{{updateType}}}', + 'Current value': '{{{currentValue}}}', 'New value': '{{{newValue}}}', + Change: + '{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}`{{{newValue}}}`', References: '{{{references}}}', 'Package file': '{{{packageFile}}}', }, @@ -1177,7 +1180,7 @@ const options = [ name: 'prBodyColumns', description: 'List of columns to use in PR bodies', type: 'list', - default: ['Package', 'Type', 'Update', 'New value', 'References'], + default: ['Package', 'Type', 'Update', 'Change', 'References'], }, { name: 'prBodyNotes', diff --git a/test/workers/pr/__snapshots__/index.spec.js.snap b/test/workers/pr/__snapshots__/index.spec.js.snap index 64120872f886047a22333fa65b5481cbfefcee1f..13ac337aa3af529c5636077ac22f4cc34cd97106 100644 --- a/test/workers/pr/__snapshots__/index.spec.js.snap +++ b/test/workers/pr/__snapshots__/index.spec.js.snap @@ -30,9 +30,9 @@ Array [ "Update dependency dummy to v1.1.0", "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | pin | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| dummy | devDependencies | pin | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | :pushpin: **Important**: Renovate will wait until you have merged this Pin PR before creating any *upgrade* PRs for the affected packages. Add the preset \`:preserveSemverRanges\` your config if you instead don't wish to pin dependencies. @@ -72,9 +72,9 @@ Array [ "Update dependency dummy to v1.1.0", "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | minor | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| dummy | devDependencies | minor | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | --- @@ -112,10 +112,10 @@ Array [ "Update dependency dummy to v1.1.0", "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | lockFileMaintenance | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | -| a | | | aaaaaaa | | +| dummy | devDependencies | lockFileMaintenance | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| a | | | \`aaaaaaa\` | | | b | | pin | | | | c | | | | | | d | | lockFileMaintenance | | | @@ -169,9 +169,9 @@ Array [ "Update dependency dummy to v1.1.0", "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | minor | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| dummy | devDependencies | minor | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | --- @@ -207,9 +207,9 @@ exports[`workers/pr ensurePr should return modified existing PR 1`] = ` Object { "body": "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | minor | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| dummy | devDependencies | minor | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | --- @@ -245,9 +245,9 @@ exports[`workers/pr ensurePr should return modified existing PR title 1`] = ` Object { "body": "This PR contains the following updates: -| Package | Type | Update | New value | References | +| Package | Type | Update | Change | References | |---|---|---|---|---| -| dummy | devDependencies | minor | 1.1.0 | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | +| dummy | devDependencies | minor | \`1.0.0\` -> \`1.1.0\` | [homepage](https://dummy.com), [source](https://github.com/renovateapp/dummy), [changelog](https://github.com/renovateapp/dummy/changelog.md) | --- diff --git a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap index cfde3adb656545dd3a3e367468a92eab631618c7..d27e526bb403a25e8ba7b20a85c75d7ce4011e0d 100644 --- a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap +++ b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap @@ -44,10 +44,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -132,10 +134,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -217,10 +221,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -308,10 +314,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -393,10 +401,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -484,10 +494,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -572,10 +584,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}", @@ -660,10 +674,12 @@ Array [ "Package", "Type", "Update", - "New value", + "Change", "References", ], "prBodyDefinitions": Object { + "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", "Package file": "{{{packageFile}}}",