feat: apply group settings when only one update is present#43629
Conversation
6b7760f to
58b8d30
Compare
72b575a to
199d233
Compare
|
@RahulGautamSingh, I believe the auto-generated docs are good enough. I even had an extra sentence but thought it was superfluous.
What do you think? EDIT: Some examples: |
There was a problem hiding this comment.
Thinking about this some more, I'm wondering if this should maybe be the default - what do @renovatebot/maintainers think?
IMO, it's a little confusing when a group only contains a single update and has a different title.
For instance, I noticed this earlier today on one of my projects (which I'd exepct there to be multiple dependencies in the group for)
Are there any other settings that may/may not be used when there's a group that may not be wanted if only one update is there?
|
I do understand the rationale behind it: if there's only one update, titling the PR after update makes it a lot more descriptive than titling it after the group. But I tend to agree, it is a common source of confusion for my users too.
I can't think of anything, but have in mind anything under https://docs.renovatebot.com/configuration-options/#group I.e. I think it should be treated as a breaking change if we go that route. |
|
Looking at the example posted here: That sets |
Absolutely. It can be set at any level. |
SGTM, I ran into this too some times |
jamietanna
left a comment
There was a problem hiding this comment.
Per comments (and +1'd by secustor) we'll make this on-by-default, and then folks who wish the old behaviour can disable it where they'd like to
|
Alright. Working on it. Question: should I add a breaking change notice to it, or would you rather handle that yourself during merge? |
…eat/groupSingleUpdates
|
I'm happy arguing this isn't a full "breaking change", so no need to document anything additionally I'll see about whether it's worth adding a bit of a call out in the GitHub Release itself |
groupSingleUpdates option|
🎉 This PR is included in version 43.208.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
Hi! We've noticed that since this PR merged, our Maven dependency MR titles changed from:
to:
This change appears to have been released in a patch/minor version update, but it was breaking for us—a lot of our PRs got recreated due to the title format change. We understand this is due to the new groupSingleUpdates behavior—when a group contains only a single update, Renovate titles the PR using the group property name instead of the individual dependency name. Questions:
We've worked around this by setting "groupSingleUpdates": false in our Renovate presets, but other teams may hit this issue. Thanks! |
|
Moving discussion into #43756 |

Changes
By default, Renovate titles PRs after the individual dependency when a group contains only a single update.
This PR adds a new configuration option,
groupSingleUpdates, that allows users to choose whether Renovate should always title PRs after the group, even when the group contains only a single update.Discussed and proposed in #25588 (comment). Note I chose a different option name than the one proposed in the discussion, as I think this name is more descriptive of the behavior it controls.
Context
Please select one of the following:
AI assistance disclosure
Did you use AI tools to create any part of this pull request?
Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.
This PR has been written with assistance of Claude Opus 4.6.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via:
The public repository: