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

fix: lower case only if the commitType has no uppercase

parent 69373802
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ function generateBranchConfig(branchUpgrades) { ...@@ -72,7 +72,7 @@ function generateBranchConfig(branchUpgrades) {
)})`; )})`;
} }
upgrade.commitMessagePrefix = `${semanticPrefix}: `; upgrade.commitMessagePrefix = `${semanticPrefix}: `;
upgrade.toLowerCase = true; upgrade.toLowerCase = upgrade.semanticCommitType.match(/[A-Z]/) === null;
} }
// Compile a few times in case there are nested templates // Compile a few times in case there are nested templates
upgrade.commitMessage = handlebars.compile(upgrade.commitMessage || '')( upgrade.commitMessage = handlebars.compile(upgrade.commitMessage || '')(
......
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