fix-ci

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Fix CI

修复CI

Trigger

触发场景

Branch or PR CI is failing and needs a fast, iterative path to green checks.
分支或PR的CI检查失败,需要快速、迭代的方式让检查项变绿。

Workflow

工作流程

  1. Resolve the active PR and inspect
    gh pr checks --json name,bucket,state,workflow,link
    .
  2. 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.
  3. Apply the smallest safe fix.
  4. Push, re-check the PR check set, and repeat until green.
  1. 定位当前活跃的PR,查看
    gh pr checks --json name,bucket,state,workflow,link
    的输出。
  2. 查看失败的任务,提取第一个可处理的错误。如果有GitHub Actions日志则使用该日志;否则通过检查链接确定失败的命令或服务。
  3. 应用最小的安全修复。
  4. 推送代码,重新检查PR的检查项,重复操作直到所有检查项变绿。

Guardrails

防护规则

  • Fix one actionable failure at a time.
  • Prefer minimal, low-risk changes before broader refactors.
  • Keep
    gh pr checks
    as the source of truth for overall PR CI state.
  • 每次只修复一个可处理的失败项。
  • 在进行大范围重构前,优先选择最小化、低风险的修改。
  • gh pr checks
    作为PR整体CI状态的权威来源。

Output

输出内容

  • Primary failing job and root error
  • Fixes applied in iteration order
  • Current CI status and next action
  • 主要失败任务及根本错误
  • 按迭代顺序应用的修复
  • 当前CI状态及下一步操作