How to group updates by file? #33053
-
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, helm, renovate version 38.83.0 Please tell us more about your question or problemI am trying to figure out how to group updates by file automatically. I have a config like this that is working: "packageRules": [
{
"matchDatasources": ["docker"],
"matchedFileNames": ["namespaces/dev1/config.yaml"],
"groupName": "dev1 dependencies",
},
{
"matchDatasources": ["docker"],
"matchedFileNames": ["namespaces/dev2/config.yaml"],
"groupName": "dev2 dependencies",
},
{
"matchDatasources": ["docker"],
"matchedFileNames": ["namespaces/qa1/config.yaml"],
"groupName": "qa1 dependencies",
},
] However, I don't want to have to specify every config.yaml in a separate rule. Is there a way to define one rule that uses regex or a wildcard to match the file and then include part of that file path in the group name? Or is there a better way in general to handle something like this? Essentially I am wanting to update all dependencies in a file(namespace) in one PR, instead of one PR for each dependency. Each of these config.yaml files contain the same or similar dependencies, but we can only deploy updates to a single namespace at a time - e.g. we don't want to deploy an updated image to dev, qa, and prod all at the same time. Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use template fields for this. Checkout https://docs.renovatebot.com/templates/#template-fields |
Beta Was this translation helpful? Give feedback.
You can use template fields for this. Checkout https://docs.renovatebot.com/templates/#template-fields