已关闭
feat: gc auth setup-git — 配置 git credential helper(纯客户端) #529
aflyingto创建于  8月11日关闭于  8月13日
aflyingto成员
8月11日 创建

背景

拆自 gh-parity 专项。对齐 gh auth setup-git。纯客户端 git credential helper 配置。

需求

配置 git 使用 gc 作为 credential helper,使 git 操作自动携带 GitCode 认证。

命令接口

gc auth setup-git [--hostname <host>]

行为:设置 git config --global credential."https://gitcode.com".helper 为 gc 的 credential helper 命令。

对齐 gh 参考

gh auth setup-git [--hostname <host>]

验收标准

Refs gitcode-cli/cli#506

likedislike
Aaflyingto成员
8月11日 关联了里程碑:gh-parity: 全面对齐 gh CLI
Aaflyingto成员
8月11日 添加了label:enhancementscope/auth
aflyingto成员
8月13日 评论:

验证记录

  • 当前版本或分支: main (v0.12.0, commit a0b142b)
  • 复现命令: ./gc auth --help
  • 实际结果: gc auth 仅有 login/logout/status/token 四个子命令,缺少 setup-git;origin/main 无 setup-git 实现;gh auth setup-git 是 gh 标准功能(配置 git credential helper,使 git 操作自动携带认证)
  • 结论: 需求有效,验收标准清晰(纯客户端、对齐 gh、追加不覆盖、--hostname 支持、单测+文档),继续开发
likedislike
Aaflyingto成员
8月13日 添加了label:status/verified,type/feature
Aaflyingto成员
8月13日 添加了label:status/in-progress
Aaflyingto成员
8月13日 关联了pull request:feat(auth): add gc auth setup-git credential helper
Aaflyingto成员
8月13日 添加了label:status/ready-for-review
Aaflyingto成员
8月13日 关闭了 issue
Aaflyingto成员
8月13日 添加了label:status/merged