fix-ci
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFix CI
修复CI
Trigger
触发场景
Branch or PR CI is failing and needs a fast, iterative path to green checks.
分支或PR的CI检查失败,需要快速、迭代的方式让检查项变绿。
Workflow
工作流程
- Resolve the active PR and inspect .
gh pr checks --json name,bucket,state,workflow,link - Inspect failed jobs and extract the first actionable error. Use GitHub Actions logs when available; otherwise use the check link to identify the failing command or service.
- Apply the smallest safe fix.
- Push, re-check the PR check set, and repeat until green.
- 定位当前活跃的PR,查看的输出。
gh pr checks --json name,bucket,state,workflow,link - 查看失败的任务,提取第一个可处理的错误。如果有GitHub Actions日志则使用该日志;否则通过检查链接确定失败的命令或服务。
- 应用最小的安全修复。
- 推送代码,重新检查PR的检查项,重复操作直到所有检查项变绿。
Guardrails
防护规则
- Fix one actionable failure at a time.
- Prefer minimal, low-risk changes before broader refactors.
- Keep as the source of truth for overall PR CI state.
gh pr checks
- 每次只修复一个可处理的失败项。
- 在进行大范围重构前,优先选择最小化、低风险的修改。
- 将作为PR整体CI状态的权威来源。
gh pr checks
Output
输出内容
- Primary failing job and root error
- Fixes applied in iteration order
- Current CI status and next action
- 主要失败任务及根本错误
- 按迭代顺序应用的修复
- 当前CI状态及下一步操作