Combine grouping and separateMinorPatch - still getting two separate branches #43957
Replies: 1 comment
|
I reproduced your exact split on Renovate 43.220.0 and then tested every plausible config counter to it; exactly one produces the single MR you want, and the others fail in instructive ways, so here is the verified fix first and the map of dead ends after it, since one of them is a config the validator outright rejects. The fix, verified: add a {
"matchUpdateTypes": ["patch", "digest"],
"matchPackageNames": ["codeberg.org/margau/buildenv*", "https://codeberg.org/margau/copier-python-uv.git"],
"groupName": "housekeeping",
"branchName": "{{{branchPrefix}}}housekeeping",
"automerge": true,
"automergeSchedule": "* 0-3 */2 * *"
}Measured result on a minimal reproduction (details below): one branch, How I verified it: your codeberg and docker datasources are not reachable from my test environment, so I built a manager-agnostic analog with npm: dependency A with The dead ends, all measured on 43.220.0, in case you try them or find them suggested elsewhere:
Number 4 is the informative one: even an explicitly set group slug comes out prefixed, which means the if (update.updateType === "patch" && update.separateMinorPatch)
update.groupSlug = `patch-${update.groupSlug}`;so the prefix lands on whatever slug you configured, explicit or not. That is why only a full One pragmatic footnote in case you prefer to avoid the Hardening checks, since a config fix should survive more than its demo: with the override in place I additionally verified that a third dependency with an available patch update but outside Scope note for honesty: the reproduction used the npm manager rather than copier and docker for the reachability reason above; the grouping and branch-naming layer is manager-independent, and the branch names matched yours character for character, but if your real setup behaves differently after adding the override, say so and I will dig further. |
Uh oh!
There was an error while loading. Please reload this page.
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
Forgejo
Which version of Renovate are you using?
43.220.0
Please tell us more about your question or problem
Hi,
I have two relevant dependencies:
https://codeberg.org/margau/copier-python-uv.gitcodeberg.org/margau/buildenv*I wanna group together patch updates of copier and docker digest updates into the group
housekeeping. Non-Patch-Updates of copier should stay separate.Config Extract of the package rules:
With that config, I get 2 separate MRs:
One for docker with the branch name renovate/housekeeping (e.g. https://codeberg.org/entropia/paperless-asn-qr-codes/pulls/139),
another one for copier with the branch name
renovate/patch-housekeeping(e.g. https://codeberg.org/entropia/paperless-asn-qr-codes/pulls/140).Expected would be a single PR/group.
What do I need to be able to have those in a single MR?
SeparateMinorPatch is necessary, as I wanna follow the patches (in the old minor branch) automatically, while manually looking over the the minor changes.
Thanks!
Logs (if relevant)
Logs
All reactions