Force group names even for single dependency #25588
-
How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us what version of Renovate you run.No response If you're self-hosting Renovate, select which platform you are using.github.com Was this something which used to work for you, and then stopped?I never saw this working Wanted end result.I want the single-dependency updates like
to be titled the same way as many-dependency-in-a-group updates Note: I have a custom commit message, you can ignore that for this issue: "commitMessageExtra": "from {{{currentValue}}} to {{{newValue}}}{{#if isMajor}} (major v{{{newMajor}}}){{else}}{{/if}}",The key here is that I always want the Monorepo's group name in the PR title, even if it's just one dependency being updated. What you tried so far.I have a group set up for "Kotlin": "packageRules": [
{
"groupName": "Kotlin",
"description": "Group together all dependencies from Kotlin, Dokka and KotlinX, including coroutines.",
"matchPackagePatterns": [
"^org\\.jetbrains\\.kotlin:kotlin-.*$",
"^org\\.jetbrains\\.kotlin\\.(.+):org\\.jetbrains\\.kotlin\\.(\\$1)\\.gradle\\.plugin$"
],This was set up even at the time of the other updates! However, since maven publishing might happen slowly on the Kotlin side, or some dependencies have slightly different cadence, Renovate picked up and merged some singular updates. I've since added Relevant debug logsNot sure if there are relevant logs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
This is not a first-class config option but could potentially be "hacked" as you're trying. I originally had this configuration option but removed it years ago after nobody seemed to use it. I referred to it as something like "lazy" or "eager" group PR title naming (with lazy being the default like today). We could make it a boolean option now, something like |
Beta Was this translation helpful? Give feedback.
-
|
It’s not very convenient, but the requested behavior can be achieved by overriding the commit message properties: |
Beta Was this translation helpful? Give feedback.
For your specific case, I believe you should set "commitMessageTopic" to "Kotlin" and keep "commitMessageExtra" with your custom value. That will force single-group commits to be named the same way as commits with multiple packages.