## Description When `claude-code-action` is triggered via `@claude` on a pull request that originates from a fork, the action fails because it tries to `git fetch origin <branch-name>` — but the branch only exists on the fork's remote, not on `origin`. ## Steps to reproduce 1. Set up the `claude.yml` workflow per the README (trigger on `issue_comment` with `@claude`) 2. Receive a PR from a fork (cross-repository PR) 3. Tag `@claude` in a comment on that PR ## Error ``` This is an open PR, checking out PR branch... PR #12: 1 commits, using fetch depth 20 fatal: couldn't find remote ref feat/add-archive-timestamp ``` ## Expected behavior The action should detect that the PR is from a fork (`isCrossRepository: true`) and fetch from the fork's repository URL instead of `origin`. The GitHub API provides all the necessary info: ```json { "head": { "ref": "feat/add-archive-timestamp", "repo": { "full_name": "hacdias/kipclip-appview", "clone_url": "https://github.com/hacdias/kipclip-appview.git" } } } ``` ## Context - The **review workflow** (`claude-code-review.yml` using `on: pull_request`) works fine on the same fork PR - Only the **comment-triggered workflow** (`claude.yml` using `on: issue_comment`) fails - Action version: `anthropics/claude-code-action@v1` - Failed run: https://github.com/tijs/kipclip-appview/actions/runs/22277278072