Skip to content

ci(claude): check out detached HEAD so fork PRs from main work - #1125

Merged
robertying merged 1 commit into
mainfrom
claude/fix-claude-fork-checkout
Sep 30, 2026
Merged

robertying merged 1 commit into
mainfrom
claude/fix-claude-fork-checkout

Conversation

@robertying

Copy link
Copy Markdown
Owner

claude-code-action fetches fork PRs into a local branch named after the
PR head ref. When a fork PR comes from main, that fetch fails because
main is already checked out. Checking out the commit SHA avoids the
collision.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_014oZGvcEdWPc2Y4Qrrx3qqR

claude-code-action fetches fork PRs into a local branch named after the
PR head ref. When a fork PR comes from `main`, that fetch fails because
`main` is already checked out. Checking out the commit SHA avoids the
collision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014oZGvcEdWPc2Y4Qrrx3qqR
@robertying
robertying merged commit 2f18e72 into main Sep 30, 2026
1 check passed
@robertying
robertying deleted the claude/fix-claude-fork-checkout branch September 30, 2026 15:19
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