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

feat: Add ability to ignore path to autodiscover #5254

Closed

Conversation

lukemassa
Copy link
Contributor

@lukemassa lukemassa commented Jan 19, 2025

what

Add ability to ignore paths in auto-discovery.

I followed the existing convention of surrounding regexes with /. It's a bit awkward for paths, so I'm open to removing it.

why

It's useful to allow certain directories to be auto discovered, but leave other areas of a repo for explicit configuration.

tests

Added some unit tests

references

Partially addresses #859

@lukemassa lukemassa changed the title Add ability to ignore path to autodiscover feat: Add ability to ignore path to autodiscover Jan 19, 2025
@lukemassa lukemassa force-pushed the add_ignore_path_to_autodiscover branch from 919e412 to 67638cc Compare January 20, 2025 04:24
@lukemassa lukemassa force-pushed the add_ignore_path_to_autodiscover branch from cf296e1 to e8c7bd1 Compare January 20, 2025 04:46
Signed-off-by: Luke Massa <[email protected]>
@lukemassa lukemassa marked this pull request as ready for review January 20, 2025 15:18
@lukemassa lukemassa requested review from a team as code owners January 20, 2025 15:18
@lukemassa lukemassa requested review from GenPage, nitrocode and X-Guardian and removed request for a team January 20, 2025 15:18
@github-actions github-actions bot added docs Documentation go Pull requests that update Go code labels Jan 20, 2025
@dosubot dosubot bot added the feature New functionality/enhancement label Jan 20, 2025
Signed-off-by: Luke Massa <[email protected]>
@lukemassa
Copy link
Contributor Author

@nitrocode I notice in #859 (comment) you mention adding defaults as well, so I'm actually not sure if this PR will fully address #859, but it's a step in that direction, and a feature that would be useful otherwise. For example in my setup, we have a repo that has some specified projects, and another directory that automation adds and removes directories from, so we want to ignore autoplanning in the former but not the latter.

@lukemassa
Copy link
Contributor Author

FYI @krrrr38 who had some thoughts about implementation here as well

Copy link
Member

@chenrui333 chenrui333 left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2025
@lukemassa
Copy link
Contributor Author

Per conversation in slack, I'm going to try to implement this with globs instead of regexes so we can compare the two options

@lukemassa
Copy link
Contributor Author

Closing in favor of the (now merged) alternative #5267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation feature New functionality/enhancement go Pull requests that update Go code lgtm This PR has been approved by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants