elizaOS/eliza✦ 精选0°

github

仓库创建 2024年7月9日最近提交 1 小时前SkillHot 收录 1 小时前
▸ 精选理由

直接调用 gh,适合自动化常见 GitHub 操作与排查 CI 问题。

▸ 风险提示

需要已配置的 gh CLI 凭证与仓库访问权限。

这个 Skill 做什么

用 gh CLI 管理仓库、PR、Issue、工作流和 API 查询。

可以用 gh CLI 在命令行管理 GitHub 的仓库、PR、Issue、CI/CD workflow 和 API 查询。需要创建、查看、合并或关闭 PR/Issue,或查看 workflow 日志和 CI 状态时会用到。特点是直接用 gh 的子命令(如 gh pr、gh issue、gh run、gh repo、gh api)在本地或指定 --repo 上操作,方便脚本化和自动化。

▸ 展开 SKILL.md 英文原文

Interact with GitHub using the `gh` CLI to manage repositories, issues, pull requests, CI/CD workflow runs, and API queries. Use when the user asks to create, list, view, merge, or close pull requests and issues; check CI status or workflow run logs; query the GitHub API for repository data; or perform any GitHub operation from the command line. Covers `gh issue`, `gh pr`, `gh run`, `gh repo`, and `gh api` subcommands.

开发编程GitHubCLIPR 与 CI通用✓ ClawHub 收录
1.9w
Stars
5.6k
Forks
35
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/github/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/github/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# GitHub Skill

Use the `gh` CLI to interact with GitHub. Always specify `--repo owner/repo` when not in a git directory, or use URLs directly.

## Pull Requests

Check CI status on a PR:

```bash
gh pr checks 55 --repo owner/repo
```

List recent workflow runs:

```bash
gh run list --repo owner/repo --limit 10
```

View a run and see which steps failed:

```bash
gh run view <run-id> --repo owner/repo
```

View logs for failed steps only:

```bash
gh run view <run-id> --repo owner/repo --log-failed
```

## API for Advanced Queries

The `gh api` command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

```bash
gh api repos/owner/repo/pulls/55
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有