renovatebot / config-help

Please use the Discussions feature of https://github.com/renovatebot/renovate instead
https://github.com/renovatebot/renovate/discussions
MIT License
27 stars 16 forks source link

Group together all `x.y.*` updates for dependencies #920

Closed vegerot closed 4 years ago

vegerot commented 4 years ago

Which Renovate are you using?

WhiteSource Renovate

Which platform are you using?

GitLab self-hosted

What would you like to do?

I would like to group together all x.*.* updates for devDependencies, and separately group together all x.y.* updates for dependencies.

My current attempt looks like

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:base"
  ],
  "packageRules": [
    {
      "depTypeList": ["devDependencies"],
      "updateTypes": ["patch", "minor"],
      "groupName": "devDependencies (non-major)"
    },
    {
      "depTypeList": ["dependencies"],
      "updateTypes": ["patch"],
      "groupName": "Dependencies (patch)"
    }
  ]
}

This works for devDependencies, but is not doing the right thing for dependencies. Renovate is making separate MRs for every dependency update. Any help would be appreciated.

rarkins commented 4 years ago

You need to add "separateMinorPatch": true either to your entire config or specifically for dependencies, otherwise all non-major updateTypes will be treated as "minor".

vegerot commented 4 years ago

Thank you so much! Love renovate!