SuperAPI AI 工具集

github

编程与开发

查看项目

更新于 10-15 21:38

技能介绍

用途:通过 gh 命令行工具与 GitHub 交互,管理仓库、议题(issues)、拉取请求(PR)、CI/CD 工作流运行,并执行 API 查询。

主要能力:检查 PR 的 CI 状态、列出近期工作流运行、查看某次运行及失败步骤、仅查看失败步骤日志,以及通过 gh api 访问其他子命令未提供的数据。

使用方式:不在 git 目录中时始终指定 --repo owner/repo,或直接使用 URL。常用命令示例:gh pr checks 55 --repo owner/repo;gh run list --repo owner/repo --limit 10;gh run view <run-id> --repo owner/repo;gh run view <run-id> --repo owner/repo --log-failed。高级查询用 gh api,例如 gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'。多数命令支持 --json 输出结构化数据,并可用 --jq 过滤,例如 gh issue list --repo owner/repo --json number,title --jq '.[] | "(.number): (.title)"'。

适用场景:需要以命令行方式批量或自动化处理 GitHub 仓库、议题、PR 与工作流时。

限制:资料未提供认证方式、权限要求、速率限制及具体平台支持范围,暂未提供。