返回顶部
c

ci-failure-fixer

Monitor GitHub Actions CI pipelines for failures and automatically fix common issues. Use when asked to watch CI, fix build failures, monitor GitHub Actions, set up CI auto-repair, or diagnose failed builds. Detects failures via `gh` CLI, reads build logs, matches against known fix patterns (dependency issues, snapshot mismatches, lint errors, E2E failures), applies fixes automatically, and reports unfixable issues with diagnosis. Works as a cron job or on-demand. Requires `gh` CLI authenticated

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
63
下载量
0
收藏
概述
安装方式
版本历史

ci-failure-fixer

# CI Failure Fixer Monitor GitHub Actions for failures. Auto-fix what's fixable, report what's not. ## How It Works 1. `scripts/check-ci-failures.sh` polls repos for new failed runs 2. If failures found → read build logs via `gh run view --log` 3. Match error against known patterns → auto-fix if safe 4. Push fix → wait 90s → verify build passes 5. Report results (fixed or diagnosis-only) ## Quick Start ### On-demand ```bash bash scripts/check-ci-failures.sh ``` Output: `OK` (no failures) or `FAILURES` with details. ### As Cron Job (OpenClaw) Set up a cron that runs every 30 minutes: - **Script:** `bash scripts/check-ci-failures.sh` - **Model:** Haiku (cheap, sufficient) - **On failure:** Read logs, attempt auto-fix, report ## Configuration Environment variables: - `GITHUB_OWNER` — GitHub username (auto-detected from `gh` if not set) - `CI_REPOS` — Space-separated repo names (auto-discovers all repos if not set) - `CI_STATE_FILE` — Path to state JSON (tracks last check time) ## Auto-Fixable Patterns | Pattern | Detection | Fix | |---------|-----------|-----| | Dependency issues | `npm ERR! Could not resolve` | `npm install` + push | | Test snapshots | `Snapshot mismatch` | `npm test -- --update` + push | | Lint errors | `eslint`, `Formatting` | `eslint --fix` + push | | E2E snapshots | Playwright snapshot diff | `playwright --update-snapshots` + push | ## Report-Only (Human Needed) - Token/auth errors (secrets rotation) - TypeScript errors (complex type issues) - Build timeouts (resource/loop issues) - Unknown errors ## Fix Patterns Reference Read `references/fix-patterns.md` for detailed decision tree, log reading commands, and all known patterns with fix scripts. ## Reading Logs ```bash # Latest failed run logs gh run view --repo OWNER/REPO --log 2>&1 | tail -50 # Filter for errors gh run view <run-id> --repo OWNER/REPO --log 2>&1 | grep -A5 "error\|FAIL" ``` ## After Fixing Always verify the fix worked: ```bash sleep 90 # Wait for new CI run gh run list --repo OWNER/REPO --limit 1 --json conclusion -q '.[0].conclusion' # Should be "success" ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ci-failure-fixer-1776051063 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ci-failure-fixer-1776051063 技能

通过命令行安装

skillhub install ci-failure-fixer-1776051063

下载 Zip 包

⬇ 下载 ci-failure-fixer v1.0.0

文件大小: 4.59 KB | 发布时间: 2026-4-14 14:16

v1.0.0 最新 2026-4-14 14:16
Initial release: GitHub Actions CI failure monitor with auto-fix for dependency issues, snapshot mismatches, lint errors, and E2E failures. Includes check script, fix pattern reference, and cron integration guide.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部