Skip to content

Add PR status + review-decision badges to the header#11

Merged
shacharPash merged 1 commit into
mainfrom
feat-pr-status-badge
Jun 4, 2026
Merged

Add PR status + review-decision badges to the header#11
shacharPash merged 1 commit into
mainfrom
feat-pr-status-badge

Conversation

@shacharPash

Copy link
Copy Markdown
Owner

The header showed the PR number and title but never the PR's state. This adds it.

  • Status pill next to the PR number, GitHub-style: ⚪ Draft · 🟢 Open · 🟣 Merged · 🔴 Closed (solid colored pill).
  • Review-decision pill (secondary, soft-tinted): ✓ Approved · ✕ Changes requested · ◐ Review required — shown only while the PR is open (it's moot once merged/closed).

Implementation: PRMeta gains isDraft + reviewDecision; ghFetcher fetches them from gh pr view --json isDraft,reviewDecision (+ normalize); new PRStatusBadge component derives the 4-state status from state + isDraft.

Verification

  • typecheck + 70 tests + build green
  • Verified live across real cli/cli PRs: Open + Approved (#13581, green pill #1f883d + tinted Approved), Draft (#13450, gray + Review required), Merged (#13510, purple #8250df, review pill correctly suppressed). No console errors.

🤖 Generated with Claude Code

The header showed the PR number/title but never the PR's state. Add a
GitHub-style status pill next to the number — Draft / Open / Merged / Closed —
plus a secondary review-decision pill (Approved / Changes requested / Review
required) shown only while the PR is open.

- shared: PRMeta gains isDraft + reviewDecision.
- ghFetcher: fetch isDraft,reviewDecision from gh; normalize reviewDecision.
- PRStatusBadge: derives the 4-state status from state+isDraft; solid pill for
  state (green/gray/purple/red), soft-tinted pill for the review decision.

Verified live across cli/cli PRs: Open+Approved (#13581), Draft (#13450),
Merged (#13510, review pill correctly suppressed). typecheck + 70 tests + build green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shacharPash shacharPash merged commit 91b4b00 into main Jun 4, 2026
1 check passed
@shacharPash shacharPash deleted the feat-pr-status-badge branch June 4, 2026 10:21
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