返回顶部
g

githubGitHub交互

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
153,215
下载量
免费
免费
501
收藏
概述
安装方式
版本历史

github

GitHub 技能

使用 gh 命令行工具与 GitHub 交互。当不在 git 目录中时,始终指定 --repo owner/repo,或直接使用 URL。

拉取请求

检查 PR 上的 CI 状态:
bash
gh pr checks 55 --repo owner/repo

列出最近的工作流运行:
bash
gh run list --repo owner/repo --limit 10

查看运行并找出哪些步骤失败:
bash
gh run view --repo owner/repo

仅查看失败步骤的日志:
bash
gh run view --repo owner/repo --log-failed

高级查询 API

gh api 命令可用于访问其他子命令无法获取的数据。

获取包含特定字段的 PR:
bash
gh api repos/owner/repo/pulls/55 --jq .title, .state, .user.login

JSON 输出

大多数命令支持 --json 参数以输出结构化数据。可以使用 --jq 进行过滤:

bash
gh issue list --repo owner/repo --json number,title --jq .[] | \(.number): \(.title)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-1775905508 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-1775905508 技能

通过命令行安装

skillhub install github-1775905508

下载

⬇ 下载 github v1.0.0(免费)

文件大小: 1.13 KB | 发布时间: 2026-4-12 10:06

v1.0.0 最新 2026-4-12 10:06

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部