Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: commitMessageLowerCase #20930

Merged
merged 12 commits into from May 13, 2023
3 changes: 2 additions & 1 deletion lib/workers/repository/updates/generate.ts
Expand Up @@ -229,7 +229,8 @@ export function generateBranchConfig(
if (upgrade.toLowerCase) {
// We only need to lowercase the first line
const splitMessage = upgrade.commitMessage.split(newlineRegex);
splitMessage[0] = splitMessage[0].toLowerCase();
splitMessage[0] =
splitMessage[0].charAt(0).toLowerCase() + splitMessage[0].slice(1);
upgrade.commitMessage = splitMessage.join('\n');
}

Expand Down