Skip to content

fix(claude): deepen checkout to 50 commits - #9

Draft
Oppen wants to merge 2 commits into
mainfrom
fix/claude-fetch-depth
Draft

fix(claude): deepen checkout to 50 commits#9
Oppen wants to merge 2 commits into
mainfrom
fix/claude-fetch-depth

Conversation

@Oppen

@Oppen Oppen commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

ai-review-claude.yml checks out with fetch-depth: 1, which leaves no base
history. Any prompt asking the agent to diff against the PR base ref or inspect
history silently fails (the commits simply aren't there). Codex already uses a
full checkout.

Deepens to 50 commits — enough to diff/log against the base and explore a bit,
without the cost of full history.

0 may cause a very long checkout, but 1 gives no context to the agent.
50 is a rule-of-thumb that should give close to all commits in the PR
without going overboard.
@Oppen
Oppen force-pushed the fix/claude-fetch-depth branch from 4455513 to 5d2d54c Compare June 5, 2026 17:38
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