blockmatic/basilic-skills

w-gha

Retrieve GitHub Actions logs with gh, analyze failures, and fix CI errors locally.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/blockmatic/basilic-skills --skill w-gha

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Fix failing GitHub Actions for the current branch. Use `gh`, never GitHub MCP for Actions logs. Follow git publish.

  1. git branch --show-current. Resolve the upstream tracking branch and confirm it exists. git status -sb is not proof the branch is pushed. Confirm HEAD is not ahead of upstream, or identify the PR head SHA (gh pr view --json headRefOid) and use that SHA when selecting runs.
  2. gh pr checks; gh run list --branch "$(git branch --show-current)" --limit 10 (or --commit <headSha>); failed run → gh run view <id> --log-failed; artifacts → gh run download <id>.
  3. Parse logs for tests, lint, build, missing deps, env, timeouts. When 2+ jobs failed, spawn one read-only parser per distinct job. Change the owning cause yourself.
  4. Re-run the same local commands the workflow uses. Do not add gh run watch to every push. No commit or push unless the user requested that action.
  5. Docs: /w-docs if behavior or commands changed.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills