| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(issue-233): migrate commands to host-aware API client Migrate all commands from manual NewClientFromHTTP + EnvToken + SetToken pattern to cmdutil.AuthenticatedClient pattern which correctly handles GC_HOST configuration for enterprise/custom host scenarios. Affected command groups: - pr: create, review, comment, merge, checkout, comments, diff, reply, close, reopen, edit, ready, sync, test - issue: create, edit, view, close, reopen, list, comments, label, relations, prs, comment/edit - release: create, upload, delete, edit - milestone: create, delete, edit - label: create, delete - repo: create, view, fork, list, delete, stats, sync - commit: comments/*, diff, patch Before: Commands used api.NewClientFromHTTP with manually fetched token, ignoring GC_HOST configuration. Token and API host could mismatch for enterprise users. After: All commands use cmdutil.AuthenticatedClient which reads host-aware token configuration from config files and GC_HOST environment variable. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> | 5 个月前 | |
chore: fix end-of-file-fixer and gofmt issues exposed by LF normalization Apply end-of-file-fixer (newline at EOF) and gofmt formatting fixes to files that were previously masked by CRLF/LF line-ending noise. Closes #300 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> | 4 个月前 |