首页/ AI 技能 / @skilllib/skill-2014279412244492290
Skill站外收录 @skilllib/skill-2014279412244492290

github

通过命令行工具实现对 GitHub 仓库的全面操作,涵盖拉取请求管理、问题跟踪、持续集成状态监控及工作流日志查看,支持自定义 API 查询与结构化数据输出,适用于远程协作与自动化流程控制。

0.0 (0) 182 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.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 --jq '.title, .state, .user.login' ``` ## JSON Output Most commands support `--json` for structured output. You can use `--jq` to filter: ```bash gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"' ```

评论 0

还没有评论,来抢沙发。