feat(cli): add --dry-run flag to preview commit message without commi…#41
Conversation
…tting Adds a --dry-run option that runs the full analysis and message generation pipeline, prints the resulting commit message to stdout, then exits with code 0 — skipping the interactive prompt and git commit entirely. Closes nirvik34#29. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@syedahmedkhaderi is attempting to deploy a commit to the nirvik34's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Warning
|
|
🎉 This PR is included in version 1.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #29
What changed
Added
--dry-runas a new CLI option inbin/smartcommit.ts.When passed,
gitbun --dry-runruns the full staged-file analysis andcommit message generation pipeline exactly as normal — including optional
AI enhancement if
--aiis also passed — but stops before the interactiveprompt. It prints the generated message to stdout and exits with code 0
without touching git.
The
dryRunoption is handled insrc/index.tsas an early-exit checkimmediately after message generation, so it cleanly bypasses both the
confirmation flow and the
git commitcall.