fix: add checkout step to Claude workflow for issue-triggered mode - #31
Conversation
The claude-code-action runs git fetch/checkout internally during branch setup but requires the repository to already be cloned on the runner. Without actions/checkout, issue-triggered runs fail with: fatal: not a git repository Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 11 seconds. ⌛ 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Claude GitHub Actions workflow to ensure the runner workspace contains a checked-out git repository before running anthropics/claude-code-action, fixing failures in issue-triggered runs (fatal: not a git repository).
Changes:
- Add an
actions/checkoutstep ahead of the Claude Code action. - Pin
actions/checkoutto the org-standard SHA (v6.0.2) and setfetch-depth: 1.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The claude-code-action runs git fetch/checkout internally during branch setup but requires the repository to already be cloned on the runner. Without actions/checkout, issue-triggered runs fail with: fatal: not a git repository Co-authored-by: DJ <dj@Rachels-MacBook-Air.local> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>



Summary
actions/checkoutstep beforeclaude-code-actionso the runner has a git repositoryfatal: not a git repositoryactions/checkout@v6.0.2)Test plan
claudelabel to an issue and verify the workflow completes🤖 Generated with Claude Code