Provide a consistent way to specify file paths in packageRules and customManagers #34416
suzuki-shunsuke
started this conversation in
Suggest an Idea
Replies: 1 comment 2 replies
-
|
renovate/lib/util/package-rules/files.ts Lines 18 to 24 in c4e20c8 We could use the same @rarkins wdyt? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
Provide a consistent way to specify file paths in packageRules and customManagers
I propose to support the same way to specify file paths in both packageRules and customManagers.
For instance, adding a new field like matchFileNamesRegexp to packageRules.
Why?
I'd like to develop Renovate Config Presets which works on only specific files.
Users can pass an argument to specify file pathes.
e.g.
"github>aquaproj/aqua-renovate-config:file#2.7.4(aqua/.*\\.ya?ml)"In this example, I'd like to restrict file paths to the regular expression
aqua/.*\\.ya?ml.But packageRules doesn't support regular expressions.
A workaround is to pass a glob pattern to the preset too, but we can't replace a regular expression
aqua/.*\\.ya?mlwith a glob pattern.Beta Was this translation helpful? Give feedback.
All reactions