Multiple matchPackageNames filter within packageRules #30764
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Bitbucket, renovate:38.25.1 Please tell us more about your question or problemIs it possible to use multiple matchPackageNames filter within the packageRules part? {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":ignoreModulesAndTests",
":autodetectPinVersions",
":prHourlyLimit4",
":prConcurrentLimit10",
"workarounds:all",
"group:monorepos",
"group:allNonMajor",
"group:all"
],
"commitMessagePrefix": "TICKET_NUMBER: ",
"commitMessageExtra": "to {{newVersion}}",
"packageRules": [
{
"matchDepNames": ["/^dev/"],
"groupName": "DEV"
},
{
"matchDepNames": ["/^prod/"],
"groupName": "PROD"
}
]
} I have more environments where I would like to group the PR's depends on the env (DEV or PROD, etc..). (the package name also contains the env). Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
This comment has been hidden.
This comment has been hidden.
-
You can use multiple filters |
Beta Was this translation helpful? Give feedback.
-
The config pasted is not a valid JSON file |
Beta Was this translation helpful? Give feedback.
-
The config you pasted is valid. You have contradicting grouping rules though, which doesn't really make sense. Eg group all and group non major should not be used together |
Beta Was this translation helpful? Give feedback.
The config pasted is not a valid JSON file