Group by mono-repo first then minor-patch #21099
-
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.None If you're self-hosting Renovate, tell us what version of the platform you run.No response Was this something which used to work for you, and then stopped?I never saw this working Wanted end result.I'd like to figure out a way to group minor and patch updates first by mono-repo, and then bucket all the rest of the minor and patch updates into a single group, and finally have all major updates go the dependency dashboard grouped by mono-repo. The allNonMajor preset overrides the mono-repo grouping, so you get a single giant PR for all minor-patch updates. What you tried so far.I've looked at the source code, but can't seem to find a way to create a configuration to group this way. I'm willing to work on an enhancement if this isn't currently possible. Relevant debug logsLogs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I think the issue is that any grouping rule you add to config is evaluated after the monorepo grouping rules from presets. To get it to work, you'd need to stop importing |
Beta Was this translation helpful? Give feedback.
-
I'd rather suggest that if folks want to group by mono repo first and then major/minor that they import group:allNonMajor first and then config:base. This gives the desired result. @HonkingGoose I wonder how we might better explain this in the default presets or documentation. |
Beta Was this translation helpful? Give feedback.
I think the issue is that any grouping rule you add to config is evaluated after the monorepo grouping rules from presets. To get it to work, you'd need to stop importing
config:base
(which includes the monorepo presets) and instead import each of the presets you want, with the group non-major coming first so that monorepo presets come after and override it.