Support multiple glob patterns in sub-config matches
This change lets [[sub-config]] blocks target more than one path pattern by accepting a list of glob strings in matches. The matching logic now applies a sub-config when any pattern matches, which makes large config migrations much less repetitive.
It also keeps existing single-string configs working for compatibility, updates MyPy and Pyright migration paths to emit the new shape, and refreshes the schema, examples, and docs to reflect the new syntax.
Hi @kavix!
Thank you for your pull request and welcome to our community.
Action Required
In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.
Process
In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.
If you have received this in error or have any questions, please contact us at [email protected]. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!
Hey Kavix, thank you for signing the Meta CLA license and welcome aboard to the team! Let me review this PR and get back to you. This is a useful feature that will reduce config duplication.
Tagging @kinto0 for config ownership review.
Put up some comments on the follow-up, once these are addressed, this should be good to land!
This pull request has been automatically marked as stale because it has not had recent activity for more than 2 weeks.
If you are still working on this this pull request, please add a comment or push new commits to keep it active. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!