feat: check-env CLI command for config validation#171
Merged
ichoosetoaccept merged 1 commit intomainfrom Feb 17, 2026
Merged
Conversation
This was referenced Feb 17, 2026
Member
Author
This was referenced Feb 17, 2026
Greptile SummaryAdds Key changes:
Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A[codereviewbuddy CLI] --> B{Command?}
B -->|default| C[serve]
B -->|check-env| D[check_env]
C --> C1[install_io_tap]
C1 --> C2[mcp.run]
D --> D1[Collect CRB_* env vars]
D1 --> D2[Check against known prefixes]
D2 --> D3[Display vars with masking]
D3 --> D4{Unknown vars?}
D4 -->|yes| D5[Warn about typos]
D4 -->|no| D6[Continue]
D5 --> D6
D6 --> D7[load_config validation]
D7 --> D8{Config valid?}
D8 -->|no| D9[Print error & exit 1]
D8 -->|yes| D10[Print config summary]
D10 --> D11[gh.check_auth]
D11 --> D12{gh CLI ok?}
D12 -->|yes| D13[Print authenticated user]
D12 -->|no| D14[Print error]
D13 --> D15[Exit 0]
D14 --> D15
Last reviewed commit: 1890ec7 |
6b87f2e to
be51d91
Compare
f9cb677 to
26242ca
Compare
Member
Author
Merge activity
|
26242ca to
1890ec7
Compare
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.

Add a
codereviewbuddy check-envCLI command for validatingCRB_*environment variables before starting the server. Built on cyclopts — the same CLI framework FastMCP uses.What it does
CRB_*env vars and their current values (masking sensitive ones)load_config()CRB_*env vars (typo detection)ghCLI authenticationChanges
src/codereviewbuddy/cli.pywith cyclopts app,serve(default) andcheck-envcommandsserver:maintocli:appmain()fromserver.py(moved tocli.serve())pyproject.toml: added T201 per-file ignore forcli.pytests/test_cli.pyFixes #160