Skip to content

Commit

Permalink
fix(Renovate): Only prepend "v" when missing
Browse files Browse the repository at this point in the history
We prepend "v" to the "from" version number,
`currentVersion`, for consistency with the "to"
version number, `prettyNewVersion`, because
Renovate doesn't expose a `prettyCurrentVersion`.
However, an upstream change recently caused
`currentVersion` to start with a "v" when bumping
Node.js. Hence, only prepend a "v" to a semantic
version number that doesn't start with "v".
  • Loading branch information
Kurt-von-Laven committed Mar 14, 2024
1 parent 2597a5c commit f00d47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"commitBodyTable": true,
"commitMessageAction": "Bump",
"commitMessageExtra": "to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if isSingleVersion}}{{prettyNewVersion}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}{{/if}}",
"commitMessageTopic": "{{depName}} from {{#if isPinDigest}}{{{currentDigestShort}}}{{else}}{{#if isSingleVersion}}v{{currentVersion}}{{else}}{{#if newValue}}{{{currentValue}}}{{else}}{{{currentDigestShort}}}{{/if}}{{/if}}{{/if}}",
"commitMessageTopic": "{{depName}} from {{#if isPinDigest}}{{{currentDigestShort}}}{{else}}{{#if isSingleVersion}}{{replace '^(?<version>(\\d+\\.){2}\\d+)' 'v$<version>' currentVersion}}{{else}}{{#if newValue}}{{{currentValue}}}{{else}}{{{currentDigestShort}}}{{/if}}{{/if}}{{/if}}",
"configWarningReuseIssue": false,
"dependencyDashboardApproval": true,
"dependencyDashboardLabels": ["dependencies"],
Expand Down

0 comments on commit f00d47e

Please sign in to comment.