-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file inclusion improvement + docs #4768
Conversation
And throw helpful err if include and exclude statements overlap.
@@ -282,6 +283,18 @@ export const actionFromConfig = profileAsync(async function actionFromConfig({ | |||
|
|||
const dependencies = dependenciesFromActionConfig(log, config, configsByKey, definition, templateContext) | |||
|
|||
if (config.exclude?.includes("**/*")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have equals here instead of includes, in case of something like src/test/**/*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, can we also add a test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.exclude
is an array of strings. It's checking if the array includes the exact match of "**/*"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Writing tests was a good idea, found a bug in my original logic and removed some unwanted mutation
e4a9dce
and fix two bugs in the original logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work! 🚢
see commits
related to #4763