[Feat] Show review request status for worktrees#69
Conversation
Signed-off-by: samzong <samzong.lu@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e3531d66c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| out, err := reviewRunFunc(repoDir, | ||
| "gh", | ||
| "pr", "list", | ||
| "-R", repoURL, |
There was a problem hiding this comment.
Normalize GitHub remotes before passing --repo
For repositories whose origin/upstream is a normal Git URL, this passes values like git@github.com:org/repo.git or https://github.com/org/repo.git to gh pr list -R, but the gh pr list manual documents --repo as using the [HOST/]OWNER/REPO format (https://cli.github.com/manual/gh_pr_list). In those common SSH/HTTPS remote setups, gmc wt --pr will fail the lookup and only show the generic warning instead of PR status; normalize the remote to org/repo/host/org/repo or omit -R while running inside the repo.
Useful? React with 👍 / 👎.
What's changed?
gmc wt --prandgmc wt list --prto show review request status for each worktree branch.gh/glabwith the selected remote URL.#<number>links in supported terminals and expose review metadata in JSON output.Verification
go test ./...git diff HEAD~1..HEAD --checkgo run . wt --prNote:
make checkstill has pre-existing lint failures and is intentionally handled in a separate PR.