Repository navigation
[config] Support file glob when including config files - #827
Merged
Merged
Conversation
Contributor
|
@rhodesn Thanks for the PR. Just wanted to give you a heads up that I've looked at it, but not reviewed it fully yet. I'll try to review it this week. |
Contributor
Author
|
If this does make it in I can send a follow up for the docs. |
manugarg
approved these changes
Aug 20, 2024
manugarg
left a comment
Contributor
There was a problem hiding this comment.
I've a couple of super minor comments. Looks good otherwise.
Allow supplying a filepath glob pattern inside the `include` so that multiple files can be included using a single statement. Backward compatibility of including a single file is still supported as the glob match will just return a single file path in the slice. The glob pattern syntax is that of `filepath.Match()`.
rhodesn
force-pushed
the
config-include-glob
branch
from
August 22, 2024 08:16
629f37e to
5948901
Compare
Contributor
Author
|
Thanks @manugarg, both comments addressed. |
manugarg
approved these changes
Aug 22, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a potential solution for #826 to enable providing a file path glob in the
includeconfig to pick up all files in a directory.I also toyed with the idea of allowing absolute paths in the include config as well but left it out to keep PR in sync with the issue/summary. Something along the lines of: