Skip to content
Snippets Groups Projects
Commit 13f09b9f authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: simplify patch branch name

parent 85e40963
No related branches found
No related tags found
No related merge requests found
...@@ -545,9 +545,7 @@ const options = [ ...@@ -545,9 +545,7 @@ const options = [
'Configuration to apply when an update type is patch. Only applies if `separateMinorPatch` is set to true', 'Configuration to apply when an update type is patch. Only applies if `separateMinorPatch` is set to true',
stage: 'package', stage: 'package',
type: 'json', type: 'json',
default: { default: {},
branchTopic: '{{{depNameSanitized}}}-{{{newMajor}}}.{{{newMinor}}}.x',
},
cli: false, cli: false,
mergeable: true, mergeable: true,
}, },
...@@ -702,7 +700,8 @@ const options = [ ...@@ -702,7 +700,8 @@ const options = [
name: 'branchTopic', name: 'branchTopic',
description: 'Branch topic', description: 'Branch topic',
type: 'string', type: 'string',
default: '{{{depNameSanitized}}}-{{{newMajor}}}.x', default:
'{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x',
cli: false, cli: false,
}, },
{ {
......
...@@ -9,7 +9,7 @@ Array [ ...@@ -9,7 +9,7 @@ Array [
"automergeType": "pr", "automergeType": "pr",
"branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}",
"branchPrefix": "renovate/", "branchPrefix": "renovate/",
"branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}.x", "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x",
"bumpVersion": null, "bumpVersion": null,
"commitBody": null, "commitBody": null,
"commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}",
...@@ -82,7 +82,7 @@ Array [ ...@@ -82,7 +82,7 @@ Array [
"automergeType": "pr", "automergeType": "pr",
"branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}",
"branchPrefix": "renovate/", "branchPrefix": "renovate/",
"branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}.x", "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x",
"bumpVersion": null, "bumpVersion": null,
"commitBody": null, "commitBody": null,
"commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}",
...@@ -226,7 +226,7 @@ Array [ ...@@ -226,7 +226,7 @@ Array [
"automergeType": "pr", "automergeType": "pr",
"branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}",
"branchPrefix": "renovate/", "branchPrefix": "renovate/",
"branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}.x", "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x",
"bumpVersion": null, "bumpVersion": null,
"commitBody": null, "commitBody": null,
"commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment