feat(runtime): wire plan-to-git Claude hooks and PR sync#398
Conversation
|
Warning Review limit reached
More reviews will be available in 26 minutes and 55 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
sync --pr./opt/docker-git/hooks/plan-to-git-synchelper that syncs all queued agent plans to an explicit PR when available, with branch discovery fallback.StopandUserPromptSubmithooks via an idempotent JSON merge intoCLAUDE_CONFIG_DIR/settings.json.Closes #397
Verification
bun run --filter @effect-template/lib test -- core/templates.test.tsbun --cwd packages/app vitest run tests/docker-git/core-templates.test.tsbun run --filter @effect-template/lib test -- core/git-post-push-wrapper.test.tsbun run --filter @effect-template/lib typecheckbun run --filter @prover-coder-ai/docker-git typecheckrenderEntrypointGitHooks()passbash -nbun run checkbun run testMathematical Guarantees
PLAN_TO_GIT_STATE_DIRdefaults to/tmp/plan-to-git, so hook state stays outside the git checkout unless explicitly overridden.plan-to-git syncpath.REPO_REF=refs/pull/<n>/head, runtime callsplan-to-git sync --pr <n>; otherwise it falls back to current branch discovery.