Skip to content

Conversation

@jablan
Copy link
Collaborator

@jablan jablan commented Dec 16, 2025

@jablan jablan requested a review from Copilot December 16, 2025 11:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a feature to search for configuration files by traversing up the directory tree from the current working directory. Instead of only checking the current working directory for config files, the code now walks up parent directories until it finds a config file or reaches the root directory.

Key Changes:

  • Modified configPath() function to iteratively search parent directories for configuration files
  • Added test case TestConfigPath_ConfigInParentDir to verify parent directory config discovery
  • Updated test data paths to reflect new directory structure (e.g., testdata/config_files and testdata/empty2)

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
clients/go/config.go Added directory tree traversal logic to search parent directories for config files
clients/go/config_test.go Added new test for parent directory config discovery and updated existing test paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jablan jablan marked this pull request as ready for review December 16, 2025 12:55
@jablan jablan requested a review from theSoenke December 16, 2025 14:02
@jablan jablan merged commit 5b712e9 into main Dec 17, 2025
11 checks passed
@jablan jablan deleted the scd-148-cli-config-bubble-directory branch December 17, 2025 09:57
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