feat(config): discover treehouse.toml in ancestor directories - #76
Open
rudingma wants to merge 2 commits into
Open
feat(config): discover treehouse.toml in ancestor directories#76rudingma wants to merge 2 commits into
rudingma wants to merge 2 commits into
Conversation
4 tasks
rudingma
marked this pull request as ready for review
July 28, 2026 14:36
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
treehouse.tomlfrom the repository root upward$HOMEor the filesystem rootrootvalues from the selected config file's directoryWhy
Pool placement is operator and machine policy, but repository-root-only discovery requires duplicating the same untracked configuration across every repository in a context. Ancestor discovery lets a context directory such as
~/Workspace/personalown that policy while repository-root files remain available as explicit overrides.The implementation stays behind the existing
config.Load(repoRoot)interface, so all repo-scoped commands receive the behavior consistently without changing their callers.Compatibility
$HOME/treehouse.tomlis not treated as a second global configtreehouse init, user-level config, andprune --allretain their existing rolesValidation
make lintmake testGOOS=windows GOARCH=amd64 go build ./...git diff --checkCloses #75