Can you use allowedVersions in a custom regex manager? #33951
Unanswered
justyns
asked this question in
Request Help
Replies: 1 comment
-
No, it's not possible/allowed by config. We preferred not to complicate the regex manager by supporting the same list of options which packageRules supports |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Please tell us more about your question or problem
I have a repo with several yaml files that partially looks like this:
Basically each namespace has its own yaml file like this. They're all matched by the same custom manager. I'm trying something like this:
I want to set up a custom regex manager to allow me to pin a service to a specific version in one of the yaml files by adding a comment to the yaml like in the above example. The custom manager works for the most part, but the allowedVersions group doesn't seem to affect anything.
The docs do not list allowedVersions as one of the required or optional capture groups.
Is there a way to accomplish this?
Additional info: I'm pretty sure this could be done with packageRules, but I am trying to do it in a way that if someone wants to lock the version of one service in one namespace (one yaml file in a repo with many yaml files), they can just add a comment near that service version instead of having to change the renovate.json config.
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions