Replace matchX options in packageRules with a single "match" string #31662
Pinned
rarkins
started this conversation in
Suggest an Idea
Replies: 1 comment
-
I think as an additional Matcher to cover advanced use cases it makes sense. That being said >80% of usecases I see are simple comparisons and for those vaildation and writing of rules would become harder. |
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
-
Tell us more.
Now that all "exclude" are gone, and all "match" are AND'd, it's a lot simpler to consolidate these all into a single
match
string which can supportAND
,OR
and bracketing()
. Thematch
would then behave similarly to SQLWHERE
statements.Here's our current list with their matching type:
SQL has the concepts of ANY and ALL plus also NOT.
I think our "regex or glob" concept would be more intuitive/readable if it was split up, e.g.
"matchPackageNames": ["a", "b", "!c", "!d"]
could bepackageName = ANY ["a", "b"] AND packageName != ANY ["c", "d"]
Beta Was this translation helpful? Give feedback.
All reactions