Skip to content

workflows/claude: fix PR checkout for fork PRs#1223

Merged
ellemouton merged 1 commit intolightninglabs:masterfrom
ViktorT-11:2026-02-claude-forked-repo-fix
Feb 3, 2026
Merged

workflows/claude: fix PR checkout for fork PRs#1223
ellemouton merged 1 commit intolightninglabs:masterfrom
ViktorT-11:2026-02-claude-forked-repo-fix

Conversation

@ViktorT-11
Copy link
Contributor

When a PR originates from a fork, the PR branch doesn't exist in the origin remote. This adds a step that uses gh pr checkout before running the Claude action, which properly handles fork PRs by adding the fork as a remote and fetching the branch from there.

This issue can be seen in:
#1215 (comment)

When a PR originates from a fork, the PR branch doesn't exist in the
origin remote. This adds a step that uses `gh pr checkout` before
running the Claude action, which properly handles fork PRs by adding
the fork as a remote and fetching the branch from there.
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@ellemouton ellemouton merged commit 79ae6e2 into lightninglabs:master Feb 3, 2026
23 of 24 checks passed
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