renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
16.86k stars 2.2k forks source link

Onboarding commit message uses commitMessagePrefix with extra : #29295

Open rarkins opened 3 months ago

rarkins commented 3 months ago

Discussed in https://github.com/renovatebot/renovate/discussions/28849

Originally posted by **krichter722** May 5, 2024 ### What would you like help with? I think I found a bug ### How are you running Renovate? Self-hosted ### If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate. GitLab ### Please tell us more about your question or problem I have configured no `onboardingCommitMessage` (`null` according to `--print-config`) and a `commitMessagePrefix: "CHORE"`, yet the onboarding MR has the commit message `CHORE: add renovate.json`. I'd expect it to be `CHORE add renovate.json` because https://docs.renovatebot.com/self-hosted-configuration/#onboardingcommitmessage says ``` If commitMessagePrefix or semanticCommits values are set then they will be prepended to the commit message using the same logic that is used for adding them to non-onboarding commit messages. ``` and I doubt that the commit message without `commitMessagePrefix` is `: add renovate.json` :) In case you have a strict commit message format configured you need to overwrite the onboarding MR manually.
rarkins commented 3 months ago