Skip to content
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

Merged
merged 3 commits into from
Jul 7, 2023
Merged

file inclusion improvement + docs #4768

merged 3 commits into from
Jul 7, 2023

Conversation

Orzelius
Copy link
Contributor

@Orzelius Orzelius commented Jul 7, 2023

see commits

related to #4763

@Orzelius Orzelius requested a review from a team July 7, 2023 09:48
@@ -282,6 +283,18 @@ export const actionFromConfig = profileAsync(async function actionFromConfig({

const dependencies = dependenciesFromActionConfig(log, config, configsByKey, definition, templateContext)

if (config.exclude?.includes("**/*")) {
Copy link
Contributor

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/**/*?

Copy link
Contributor

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?

Copy link
Contributor Author

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 "**/*"

Copy link
Contributor Author

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
@Orzelius Orzelius requested review from shumailxyz and Walther July 7, 2023 12:16
Copy link
Contributor

@shumailxyz shumailxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you 👍

Copy link
Contributor

@Walther Walther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work! 🚢

@Orzelius Orzelius merged commit 29621b9 into main Jul 7, 2023
@Orzelius Orzelius deleted the include-exclude branch July 7, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants