zx cannot be run on Windows.
I don't know why. It seems to be related to WSL on Windows.
node version:20.19.0 zx version:8.8.1
Hi @stefanhaller! 👋 Thanks for the issue. 🙏
The branch name lookup, also accepts <owner>:<branch> format. For example, if user octocat has forked a repo and made a branch foo on their fork, then the branch name argument should be octocat:foo. Note that it should be the fork owner and not the git remote name that points to the forked repo, though most of the time they're the same.
I'm not familiar with lazygit, but maybe this would help? Here, I'm assuming the git remote name is the same as the fork owner.
customCommands:
- key: "G"
command: "gh pr view -w"
context: "commits"
description: "Go to PR in github"
- key: "G"
command: "gh pr view -w $(git rev-parse --abbrev-ref --symbolic-full-name {{.SelectedLocalBranch.Name}}@{upstream} | tr / :)"
context: "localBranches"
description: "Go to PR in github"
Please let me know if this helps with your situation.
Yes, the suggested workaround works, thanks for that.
However, I would still say it's a bug in gh; it is able to do this extra work for me when the branch is checked out, but not when I pass the branch name as an argument, and I can't see a reason why.
This issue has been automatically marked as stale because it has not had any activity in the last 30 days, and it will be closed in 30 days if no further activity occurs.
If you think this is a mistake, please comment on this issue to keep it open.