You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace Params with Config to encapsulate BaseURL + Token + Timeout
together, addressing review feedback about HTTPClient encapsulation.
Changes:
- Add Config type with BaseURL, Token, Timeout, and optional HTTPClient
- Derive GraphQL URL from BaseURL (no separate parameter needed)
- Add configurable timeout (defaults to 30s)
- Simplify main.go to use DefaultConfig()
- Update all tests to use Config instead of Params
Benefits:
- Impossible to misconfigure (URL and auth bundled)
- Multi-instance support (github.com + GHE)
- Flexible timeout per instance
- Cleaner API surface
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments