feat: add project-level configuration discovery - #91
Merged
Conversation
Adds FindProjectConfig() that walks up from CWD looking for .glean/config.json, enabling teams to share CLI preferences (default output format, mode, fields) via their repo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
steve-calvert-glean
force-pushed
the
project-config
branch
from
April 12, 2026 17:18
16bbdd3 to
686a894
Compare
rwjblue-glean
approved these changes
Apr 12, 2026
rwjblue-glean
left a comment
Member
There was a problem hiding this comment.
Nice! Might be good to allow merging of .glean/config.json with a .glean/config.local.json or something in a future PR.
That way you can have shared configs checked in to the repo, and local overrides that are globally git ignored (which is how I manage CLAUDE.md + CLAUDE.local.md or mise.toml + mode.local.toml)...
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
FindProjectConfig()that walks up from CWD looking for.glean/config.jsonsettings.json)ProjectConfigstruct supportsdefault_output,default_mode,default_fieldsfindProjectConfigFrom()helper enables testability without changing CWDTest plan
mise run test:allpasses (454 tests, lint clean, binary builds)