Skip to content

[BUG] PR table Reviewer column shows requested reviewers instead of actual reviewers #105

Closed

Description

@gerchowl

Description

The "Reviewer" column in the just gh-issues PR table displays users from reviewRequests (people who have been asked to review) rather than users from reviews (people who have actually submitted a review). This makes it appear as though a review has been submitted when none has.

Steps to Reproduce

  1. Create a PR and add a reviewer via gh pr edit --add-reviewer <user>
  2. Do not submit any review
  3. Run just gh-issues
  4. Observe the "Reviewer" column shows the requested reviewer's login with no distinction

Expected Behavior

The Reviewer column should distinguish between requested and completed reviewers:

  • Requested (pending): ?gerchowl — prefixed with ? to indicate awaiting review
  • Reviewed (submitted): gerchowl — plain name, no prefix

This way a single column conveys both states at a glance.

Actual Behavior

The "Reviewer" column shows gerchowl for PR #100 with no distinction, even though reviews is empty ([]) — only reviewRequests contains that user.

{
  "reviewDecision": "REVIEW_REQUIRED",
  "reviewRequests": [{"__typename": "User", "login": "gerchowl"}],
  "reviews": []
}

Environment

Additional Context

Possible Solution

Merge both data sources into the Reviewer column:

  1. Collect actual reviewers from reviews — display as plain login (e.g. gerchowl)
  2. Collect pending reviewers from reviewRequests that haven't submitted a review — display with ? prefix (e.g. ?gerchowl)
  3. Style ?-prefixed names dimmed/italic to further distinguish visually

Changelog Category

Fixed

Activity

  1. added
    bug
    on Feb 20, 2026
  2. self-assigned this
    on Feb 21, 2026
  3. gerchowl commented on Feb 21, 2026

    @gerchowl
    ContributorAuthor

    Design

    Problem

    _extract_reviewers in scripts/gh_issues.py merges latestReviews and reviewRequests but displays both with similar styling. Requested reviewers (no review submitted) appear indistinguishable from actual reviewers.

    Solution

    Distinguish the two states in a single column:

    State Display Style
    Reviewed (from latestReviews) login green (APPROVED), red (CHANGES_REQUESTED) — unchanged
    Requested (from reviewRequests, not yet reviewed) ?login dim italic

    Implementation

    • Modify _extract_reviewers: when state == "REQUESTED", render ?{login} with dim italic instead of yellow.
    • Update existing tests: test_requested_reviewer, test_mixed_reviewers, test_review_request_with_name_fallback to assert ? prefix and dim italic style.
    • Add regression test: PR with only reviewRequests (no latestReviews) shows ?login not plain login.

    Data flow

    • _fetch_prs already includes reviewRequests and latestReviews in --json.
    • No API changes required.
  4. gerchowl commented on Feb 21, 2026

    @gerchowl
    ContributorAuthor

    Implementation Plan

    Issue: #105
    Branch: bugfix/105-pr-table-actual-reviewers

    Tasks

    • Task 1: Add failing test for requested reviewer with ? prefix and dim italic — tests/test_gh_issues.py — verify: just test tests/test_gh_issues.py::TestExtractReviewers::test_requested_reviewer fails with assertion on ? prefix
    • Task 2: Update _extract_reviewers to render REQUESTED state as ?login with dim italic — scripts/gh_issues.py — verify: just test tests/test_gh_issues.py
    • Task 3: Update test_mixed_reviewers and test_review_request_with_name_fallback for new format — tests/test_gh_issues.py — verify: just test tests/test_gh_issues.py
  5. gerchowl commented on Feb 21, 2026

    @gerchowl
    ContributorAuthor

    Autonomous Run Complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions