fix(pr-details): handle Team/Mannequin reviewers + bump 0.1.4 - #10
Conversation
GraphQL query only spread `... on User` on requestedReviewer, so when a
PR had a Team or Mannequin requested as reviewer (common in orgs) the
field came back as `{}` and serde failed to decode it as `GqlUser`,
surfacing as "network: error decoding response body" in the UI.
Add fragments for Team and Mannequin, decode requestedReviewer as a
__typename-tagged enum (with an Unknown fallback for future variants),
and map Team's `name` into PrAuthor's `login` so the existing reviewer
list renders the team handle.
Bumps version to 0.1.4 to ship the fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 PR checksType: ✅ Merging will trigger a release (patch bump)
Auto-generated by |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ebbef3961
ℹ️ 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".
| ... on User { login avatarUrl } | ||
| ... on Team { name avatarUrl } | ||
| ... on Mannequin { login avatarUrl } | ||
| } |
There was a problem hiding this comment.
Include Bot in requestedReviewer fragments
requestedReviewer can also be a Bot, but this query only requests fields for User, Team, and Mannequin. In that case the response contains only __typename, which is decoded as GqlReviewer::Unknown and then dropped by reviewer_to_author, so bot review requests disappear from the Reviewers row instead of being shown. This affects PRs where a GitHub App/bot is requested for review.
Useful? React with 👍 / 👎.
Summary
Test plan
🤖 Generated with Claude Code