-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't workingp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature request
Description
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
- Set up the
claude.ymlworkflow per the README (trigger onissue_commentwith@claude) - Receive a PR from a fork (cross-repository PR)
- Tag
@claudein 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:
{
"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.ymlusingon: pull_request) works fine on the same fork PR - Only the comment-triggered workflow (
claude.ymlusingon: issue_comment) fails - Action version:
anthropics/claude-code-action@v1 - Failed run: https://github.com/tijs/kipclip-appview/actions/runs/22277278072
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature request