Normalize GitHub account casing#116
Conversation
|
No blockers from my review. Evidence checked:
I do not see a blocker for this patch. |
|
No blockers from my pass. Reviewed
Verification run:
Remaining risk: I did not rerun the full suite in this environment; the broader pytest/mypy commands could not launch through the uv-created Python shim inside this Windows sandbox. Given the tiny diff and passing focused regression/style checks, I do not see a blocker. |
weilixiong
left a comment
There was a problem hiding this comment.
✅ No-blockers review — LGTM
Files: app/main.py, tests/test_api_mcp.py
Verified:
- pytest test_api_mcp.py::test_github_account_views_normalize_mixed_case_logins: PASSED
- pytest tests/ -x -q: 122 passed in 13.39s
- ruff check: All checks passed
Adds lowercase normalization for GitHub:account links alongside mrwk1 address normalization. Clean implementation with comprehensive test coverage (2 views + MCP endpoint).
Bounty #103
Summary
github:<login>account lookups to lowercase at the shared account boundaryget_balancealigned with payout account behaviorRepro
Live account lookup currently treats mixed-case GitHub logins as separate empty accounts:
MCP
get_balanceshows the same split betweengithub:ckeplinger199andgithub:Ckeplinger199.Validation
uv run --extra dev python -m pytest tests/test_api_mcp.py::test_github_account_views_normalize_mixed_case_logins -q-> 1 passeduv run --extra dev python -m pytest tests/test_api_mcp.py tests/test_wallet_api.py tests/test_webhooks.py -q-> 58 passed, 1 warninguv run --extra dev python -m pytest -q-> 122 passed, 2 warningsuv run --extra dev ruff format --check app/main.py tests/test_api_mcp.pyuv run --extra dev ruff check app/main.py tests/test_api_mcp.pyuv run --extra dev python -m mypy appgit diff --check