diff --git a/lib/config/definitions.js b/lib/config/definitions.js index 8ea4a24c37ba3ffa1cde738e0226bbd2bd5bffad..8151372ddb7502dad7ed11fb955e811f8391d3d5 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -740,7 +740,7 @@ const options = [ 'Extra description used after the commit message topic - typically the version', type: 'string', default: - 'to {{#unless isRange}}v{{/unless}}{{#if isMajor}}{{newVersionMajor}}{{else}}{{newVersion}}{{/if}}', + 'to {{#if isMajor}}v{{newVersionMajor}}{{else}}{{#unless isRange}}v{{/unless}}{{newVersion}}{{/if}}', cli: false, }, { diff --git a/test/config/__snapshots__/index.spec.js.snap b/test/config/__snapshots__/index.spec.js.snap index ababe95b4bfde1413a58b836a7351cf89e70d446..436c50b560c279150bb85a11b178c4b1c7dc8005 100644 --- a/test/config/__snapshots__/index.spec.js.snap +++ b/test/config/__snapshots__/index.spec.js.snap @@ -24,7 +24,7 @@ Object { "commitBody": null, "commitMessage": "{{commitMessagePrefix}} {{commitMessageAction}} {{commitMessageTopic}} {{commitMessageExtra}} {{commitMessageSuffix}}", "commitMessageAction": "Update", - "commitMessageExtra": "to {{#unless isRange}}v{{/unless}}{{#if isMajor}}{{newVersionMajor}}{{else}}{{newVersion}}{{/if}}", + "commitMessageExtra": "to {{#if isMajor}}v{{newVersionMajor}}{{else}}{{#unless isRange}}v{{/unless}}{{newVersion}}{{/if}}", "commitMessagePrefix": null, "commitMessageTopic": "dependency {{depName}}", "copyLocalLibs": false,