mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 11:31:45 -04:00
When creating a worktree from a PR number, use `gh pr view` to get the fork owner/repo and branch name, add the fork as a remote, and set the upstream tracking branch. This makes `git push` work out of the box for PRs from forks, matching the behavior of `gh pr checkout`. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>