测试与安全

babysit-pr

timschoch/skilly

Watch a PR until it is merge-ready: CI, review threads, fix-push loop. Use for "babysit", "watch the PR", "get it green".

  • 585 次安装
  • 1 星标
  • 收录于

安装命令

npx skills add https://github.com/timschoch/skilly --skill babysit-pr

SKILL.md

Hold one PR until it is merge-ready: poll, classify, fix, push, poll again. Terminal states are merged, closed, needs-user. Nothing else ends the loop, not a push, not a green run, not a report.

Loop

Each pass:

  1. Snapshot. bash scripts/pr-state.sh <pr> [--since <lastPushAt>]. Carry the previous pass's lastPushAt into --since, so only review items newer than your last push surface.
  2. Terminal first. state is MERGED or CLOSED: report it and stop.
  3. Review items before CI. A fix commit retriggers CI, so answering review first avoids spending a rerun on a SHA you are about to replace.
  4. CI. For each check with a failing conclusion, run bash scripts/classify-failure.sh <check-url> before touching code.
  5. Push. Commit on the PR head branch, push, then return to step 1 on the new SHA.
  6. Wait. bash scripts/watch.sh <pr> blocks until the checks settle, then prints a fresh snapshot. Use it instead of sleeping. Cap it with BABYSIT_MAX_MINUTES, default 60.

Rules