SuperAPI AI 工具集

github

部署与运维

查看项目

更新于 10-16 06:43

技能介绍

用途:该技能借助 gh CLI 与 GitHub 交互,覆盖仓库、议题(issues)、拉取请求(PR)和 CI。适用场景:查看 PR 状态、评审与是否可合并;查看 CI / 工作流运行状态与日志;创建、关闭或评论议题;创建或合并 PR;查询 GitHub API 获取仓库数据;列出仓库、发行版或协作者。

不适用:本地 git 操作(commit、push、pull、branch)应直接用 git;非 GitHub 仓库(GitLab、Bitbucket、自托管)需用其它 CLI;克隆仓库用 git clone;审查实际代码改动、复杂多文件 diff 应使用 coding-agent 技能或直接读取文件。

使用方式:首次需认证并验证,命令为 gh auth login 与 gh auth status。常用命令按类别包括:PR 相关 gh pr list、gh pr checks、gh pr view、gh pr create、gh pr merge;议题相关 gh issue list、gh issue create、gh issue close;CI 相关 gh run list、gh run view、gh run rerun。多数命令支持 --json 结构化输出并以 --jq 过滤,例如 gh issue list --repo owner/repo --json number,title --jq '.[] | "(.number): (.title)"'。

限制与注意事项:不在 git 目录中时始终指定 --repo owner/repo;可直接使用 URL,如 gh pr view https://github.com/owner/repo/pull/55;存在速率限制,重复查询可用 gh api --cache 1h。其余细节资料暂未提供。