Question on config merging / force override #28927
Unanswered
lfrancke
asked this question in
Request Help
Replies: 1 comment 1 reply
-
We probably should do a "deep" merge of lockFileMaintenance and other similar objects. In the meantime you might be able to succeed with a package rule like this: {
"lockFileMaintenance": {
"enabled": true
},
"packageFiles": [
{
"matchUpdateTypes": ["lockFileMaintenance"],
"force": {
"schedule": "at any time"
}
}
]
} This will turn on lockFileMaintenance for any repo which hasn't explicitly turned it off themselves (which should be rare, because it's off by default). Then it should force the schedule to be at any time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like help with?
Other
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.
GitHub / 37.349 & main branch
Please tell us more about your question or problem
I have a config in the repository that looks like this:
When running renovate manually I applied this config snippet in my
config.js
:And that caused
lockFileMaintenance
to fail because it'd generate a branch name calledrenovate/.x
which is wrong.It turns out that the
force
does override the entirelockFileMaintenance
block including thebranchTopic
(should belock-file-maintenance
but then defaulted to the bad value).Is this expected?
In my repository config I also only specify a subset of options so I kinda naively assumed that I can also just specify a subset in the
force
as well.I do now see this comment in the docs:
What is the recommended way to override things like this schedule at runtime?
That said: It seems as if the schedule is ignored anyway but that seems like a different issue.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions