Loop On Ci

作者 cursorccb5507cec15無授權條款10K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Monitor PR checks and fix failures until green. Uses gh pr checks as the source of truth for PR-attached checks.

僅含說明DevOps & Cloud
AI 產生的概覽

使用 gh 監控拉取請求的 CI 檢查,並反覆修正失敗,直到所有必要檢查通過。

功能
此技能定義了一套工作流程,用來監控掛在拉取請求上的檢查並修正失敗,直到全部變綠。它會解析目前的 PR、檢視現有檢查集、診斷失敗、以 fail-fast 方式監看待處理檢查,並在每次推送後重新檢查。它會產出 CI 狀態、失敗摘要與所做的修正,以及檢查通過後的 PR 連結。
適用情境
當你需要監看某個分支或拉取請求,並反覆處理 CI 失敗直到所有必要檢查通過時使用。它適合在 PR 上反覆推送與驗證的循環。
執行需求
需要已對該儲存庫完成驗證的 GitHub CLI(gh),並具備連線至 GitHub 的網路存取。此技能僅為說明文件,不附帶指令碼。

Loop on CI

Trigger

Need to watch a branch or pull request and iterate on CI failures until all required checks are green.

Use gh pr checks as the source of truth. It includes all PR-attached checks, while gh run list only covers GitHub Actions.

Workflow

  1. Resolve the PR for the current branch.
  2. Inspect current PR checks before waiting.
  3. If checks already failed, diagnose those failures first.
  4. If checks are pending, watch with gh pr checks --watch --fail-fast.
  5. After each push, re-check the full PR check set and repeat until green.

Commands

bash
# Resolve the active PRgh pr view --json number,url,headRefName
# Inspect all attached checksgh pr checks --json name,bucket,state,workflow,link
# Watch pending checks and fail fastgh pr checks --watch --fail-fast
# GitHub Actions logs, when the failing check links to a GHA rungh run view <run-id> --log-failed

Guardrails

  • Keep each fix scoped to a single failure cause when possible.
  • Do not bypass hooks (--no-verify) to force progress.
  • If the failure is clearly unrelated to the PR and appears fixed on main, merge latest main instead of bloating the PR with unrelated fixes.
  • If failures are flaky, retry once and report flake evidence.
  • Re-run gh pr checks --json name,bucket,state,workflow,link after every push; the check set can change.

Output

  • Current CI status
  • Failure summary and fixes applied
  • PR URL once checks are green

來源與署名

來源:cursor/plugins位於cursor-team-kit/skills/loop-on-ci提交ccb5507

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架