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

excludePackagePatterns not working as expected? #958

Closed Meemaw closed 4 years ago

Meemaw commented 4 years ago

Which Renovate are you using?

WhiteSource Renovate App

Which platform are you using?

GitHub.com

I've configured excludePackagePatterns (https://github.com/insights-io/Insight/blob/master/.github/renovate.json#L8), but I still seem to get the updates for the package: e.g. https://github.com/insights-io/Insight/pull/817

viceice commented 4 years ago

You need to add enabled=false to your package rule. Otherwise it will do nothing.

Also add ^ to the patterns start to match package name only from beginning. Otherwise you'll match xxx.io.quarkus package names too

rarkins commented 4 years ago

I think what you probably need is this:

  "packageRules": [
    {
      "managers": ["gradle"],
      "packagePatterns": ["^io.quarkus"],
      "enabled" false
    }
  ]

The first two lines are what matches the packages, and third line is the action to take (disabling it)

Meemaw commented 4 years ago

Fixed, thanks 👍