Skip to content

fix(config): ignores an empty config file path #5037

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

Merged
merged 4 commits into from
Jun 2, 2023

Conversation

jenae-janzen
Copy link
Contributor

@jenae-janzen jenae-janzen commented May 30, 2023

🎉 Thanks for submitting a pull request! 🎉

Summary

Adds a check against empty --config flags and tests to make sure --config finds the correct .toml.

Related to https://github.com/netlify/buildbot/pull/2722, https://github.com/netlify/bitballoon/pull/15709 and https://github.com/netlify/netlify-react-ui/issues/17295.

Fixes #https://github.com/netlify/pod-dev-foundations/issues/527


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@github-actions
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@jenae-janzen jenae-janzen force-pushed the jj/custom-config-file branch from d0ea6ef to 7e58b10 Compare June 1, 2023 13:33
@lukasholzer lukasholzer marked this pull request as ready for review June 1, 2023 13:41
@lukasholzer lukasholzer requested a review from a team as a code owner June 1, 2023 13:41
lukasholzer
lukasholzer previously approved these changes Jun 1, 2023
Copy link
Contributor

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jenae-janzen jenae-janzen changed the title fix(deps): check for config file path and add tests fix(config): ignores an empty config file path Jun 1, 2023
@jenae-janzen jenae-janzen force-pushed the jj/custom-config-file branch from ef40838 to 9e8f1b4 Compare June 2, 2023 12:28
Copy link
Contributor

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

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

LGTM

@jenae-janzen jenae-janzen enabled auto-merge (squash) June 2, 2023 12:43
@jenae-janzen jenae-janzen merged commit 4ac2c5b into main Jun 2, 2023
@jenae-janzen jenae-janzen deleted the jj/custom-config-file branch June 2, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants