Expand description
GitCode Pull Request 提供者实现。
通过 gitcode CLI 实现 PrProvider trait,支持 Pull Request 的创建、列表、查看、
关闭、合并、检出、草稿状态切换和分支同步。
所有方法通过 CommandRunner 调用 gitcode CLI,捕获 stdout 并解析 JSON。
gitcode v0.6.x 的 JSON 架构(snake_case、user 键、嵌套 head/base)
与 gh 不同,统一经 PrApiResponse 映射为 core 的 PrData。
Structs§
- GitCode
PrProvider - GitCode Pull Request 提供者,通过
gitcodeCLI 操作。