w-gha
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFix failing GitHub Actions for the current branch. Use , never GitHub MCP for Actions logs. Follow git publish.
gh- . Resolve the upstream tracking branch and confirm it exists.
git branch --show-currentis not proof the branch is pushed. Confirm HEAD is not ahead of upstream, or identify the PR head SHA (git status -sb) and use that SHA when selecting runs.gh pr view --json headRefOid - ;
gh pr checks(orgh run list --branch "$(git branch --show-current)" --limit 10); failed run →--commit <headSha>; artifacts →gh run view <id> --log-failed.gh run download <id> - Parse logs for tests, lint, build, missing deps, env, timeouts. Change the owning cause.
- Re-run the same local commands the workflow uses. Do not add to every push. No commit or push unless the user requested that action.
gh run watch - Docs: if behavior or commands changed.
/w-docs
修复当前分支中失败的 GitHub Actions。使用 获取 Actions 日志,绝不要使用 GitHub MCP。按照 git publish 执行。
gh- 。确定上游跟踪分支并确认其存在。
git branch --show-current不能证明分支已推送。确认 HEAD 未领先于上游,或识别 PR 头分支的 SHA(git status -sb),并在选择运行记录时使用该 SHA。gh pr view --json headRefOid - ;
gh pr checks(或使用gh run list --branch "$(git branch --show-current)" --limit 10);对于失败的运行,使用--commit <headSha>;对于 artifacts,使用gh run view <id> --log-failed。gh run download <id> - 解析日志中的测试、lint、build、依赖缺失、环境变量和超时等问题。修复导致失败的根因。
- 重新运行 workflow 使用的相同本地命令。不要在每次 push 时都添加 。除非用户明确要求,否则不要 commit 或 push。
gh run watch - 文档:如果行为或命令发生变化,使用 。
/w-docs