Skip to content

[Feat] Show review request status for worktrees#69

Merged
samzong merged 1 commit into
mainfrom
feat/worktree-review-status
May 12, 2026
Merged

[Feat] Show review request status for worktrees#69
samzong merged 1 commit into
mainfrom
feat/worktree-review-status

Conversation

@samzong
Copy link
Copy Markdown
Owner

@samzong samzong commented May 12, 2026

What's changed?

  • Add gmc wt --pr and gmc wt list --pr to show review request status for each worktree branch.
  • Detect GitHub/GitLab remotes and query gh/glab with the selected remote URL.
  • Render review numbers as clickable #<number> links in supported terminals and expose review metadata in JSON output.

Verification

  • go test ./...
  • git diff HEAD~1..HEAD --check
  • go run . wt --pr

Note: make check still has pre-existing lint failures and is intentionally handled in a separate PR.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong merged commit 1c47efd into main May 12, 2026
1 check passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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.

1 participant