Skip to content

fix: add checkout step to Claude workflow for issue-triggered mode - #31

Merged
don-petry merged 1 commit into
mainfrom
fix/claude-workflow-checkout
Apr 5, 2026
Merged

fix: add checkout step to Claude workflow for issue-triggered mode#31
don-petry merged 1 commit into
mainfrom
fix/claude-workflow-checkout

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Summary

  • Adds actions/checkout step before claude-code-action so the runner has a git repository
  • Issue-triggered runs were failing with fatal: not a git repository
  • Uses org-standard pinned SHA (actions/checkout@v6.0.2)

Test plan

  • After merge, re-apply claude label to an issue and verify the workflow completes

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings April 5, 2026 21:34
@coderabbitai

coderabbitai Bot commented Apr 5, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 11 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9e109a50-1505-4440-8b15-5b2c531c571d

📥 Commits

Reviewing files that changed from the base of the PR and between 9085635 and de277f2.

📒 Files selected for processing (1)
  • .github/workflows/claude.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/claude-workflow-checkout

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented Apr 5, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/checkout step ahead of the Claude Code action.
  • Pin actions/checkout to the org-standard SHA (v6.0.2) and set fetch-depth: 1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@don-petry
don-petry merged commit 2338750 into main Apr 5, 2026
11 of 12 checks passed
@don-petry
don-petry deleted the fix/claude-workflow-checkout branch April 5, 2026 21:36
don-petry added a commit that referenced this pull request Aug 3, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants