Create pull requests per updated files
suzuki-shunsuke opened this issue · comments
Which Renovate are you using?
WhiteSource Renovate App
Which platform are you using?
GitHub.com
Have you checked the logs? Don't forget to include them if relevant
What would you like to do?
I want to split pull requests per updated files.
I try to use additionalBranchPrefix,
but it seems that parentDir
is not full path but the parent directory name, and if the parent directory name is same, the updates are included in the same pull request.
{
"packageRules": [
{
"managers": ["terraform"],
"additionalBranchPrefix": "{{parentDir}}-",
"packagePatterns": [".*"]
}
]
}
directory structure
services/
foo/
staging/
provider.tf
production/
provider.tf
bar/
staging/
provider.tf
production/
provider.tf
provider.tf
provider "aws" {
version = "~> 2.50.0"
}
There are four provider.tf and I want to update them by separated pull requests.
But actually foo/staging/provider.tf and bar/staging/provider.tf are upgraded in the same pull request.
Try baseDir instead of parentDir. Ref: https://docs.renovatebot.com/templates/
Thank you for your reply.
I tried baseDir
and it works well.
This is what I want!
suzuki-shunsuke/test-renovate-2@8e869f2
suzuki-shunsuke/test-renovate-2#13
suzuki-shunsuke/test-renovate-2#14
suzuki-shunsuke/test-renovate-2#15
suzuki-shunsuke/test-renovate-2#16
Thanks a lot!