Split dotnet major updates from the rest of nuget updates #33828
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Bitbucket v39.119 Please tell us more about your question or problemI have the following configuration file. My expectation/wish is to run non-dotnet nuget and docker updates as their own PRs, and all major dotnet-related stuff as another PR. I assumed that matching by source url with a widlcard could work, but the last package rule seems to be completely ignored. What is the behaviour with overlapping rules? Or am I misinterpreting what I can do by matching by source url? # https://docs.renovatebot.com/config-overview/
platform: "bitbucket"
onboarding: false
requireConfig: "optional"
baseBranches:
- "main"
separateMajorMinor: true
prHourlyLimit: 5
packageRules:
# Create separate PRs for docker updates
- groupName: "(docker)"
groupSlug: "docker"
matchManagers:
- "bitbucket-pipelines"
- "docker-compose"
- "dockerfile"
matchPackageNames:
- "*"
# Create separate PRs for nuget updates
- groupName: "(nuget deps)"
groupSlug: "nuget"
matchManagers:
- "nuget"
matchPackageNames:
- "*"
ignoreDeps:
- FluentAssertions
# Create separate PRs for dotnet-related updates.
# This also includes packages published by the dotnet team, e.g., AspNetCore.
# This needs to be last as the last matching rule wins in case of overlapping rules,
# see https://github.com/renovatebot/renovate/discussions/15796.
- groupName: "(dotnet major updates)"
groupSlug: "dotnet-major"
matchUpdateTypes: major
matchManagers:
- "bitbucket-pipelines"
- "docker-compose"
- "dockerfile"
- "nuget"
matchSourceUrls: "https://github.com/dotnet/*"
# Some packages are following AspNetCore, include them as well
matchPackageNames:
- Serilog.AspNetCore
enabledManagers:
- "bitbucket-pipelines"
- "docker-compose"
- "dockerfile"
- "nuget"
repositories:
- "$BITBUCKET_REPO_FULL_NAME" Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If multiple rules match, and have conflicting/different settings, then the last one will win. You last rule looks wrong. It has multiple matching fields but ultimately if you match on only one package name then it won't match any others and the other rules are pointless |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
Or go advanced and write a single line match using matchJsonata