Skip to main content
statuslinesSource-backedReview first Safety Privacy

GitHub Search Review Queue Statusline

Claude Code statusline that uses GitHub pull request search qualifiers to show review-requested queue counts for maintainers.

by MkDev11·added 2026-06-04·
Claude Code
HarnessClaude Code
Language:bash
Review first review before installing

Open the source and read safety notes before installing.

Safety notes

  • Queue counts help with triage but do not rank urgency, security impact, or release blockers.
  • Draft PRs are excluded from the ready count, but repositories may use labels or checks for additional readiness rules.
  • Keep the refresh interval moderate to avoid repeated GitHub search calls.

Privacy notes

  • The script prints aggregate counts only, not PR titles, authors, or branch names.
  • Private review requests follow the local GitHub account and may reveal workload size in screenshots.
  • Organization review-team rules may cause counts to differ from the GitHub web UI.

Prerequisites

  • GitHub CLI installed and logged in as the maintainer account whose review queue should be shown.
  • jq available for counting pull request fields.
  • Repository access that lets GitHub search return pull requests requesting the current account's review.

Schema details

Install type
config
Troubleshooting
No
Source repository stats
Scope
Source repo
Runtime and command metadata
Script language
bash
Script body
#!/usr/bin/env bash
set -u

main() {
if ! command -v gh >/dev/null 2>&1; then
  echo "reviews: gh missing"
  exit 0
fi
if ! command -v jq >/dev/null 2>&1; then
  echo "reviews: jq missing"
  exit 0
fi

prs=$(gh search prs --review-requested=@me --state=open --limit 100 --json number,isDraft 2>/dev/null || true)
if [ -z "$prs" ]; then
  echo "reviews: unavailable"
  exit 0
fi

requested=$(printf '%s' "$prs" | jq 'length')
drafts=$(printf '%s' "$prs" | jq '[.[] | select(.isDraft == true)] | length')
ready=$((requested - drafts))

printf 'reviews: requested %s | ready %s | drafts %s\n' "$requested" "$ready" "$drafts"
}

case $- in
  *n*) ;;
  *) main "$@" ;;
esac
Full copyable content
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/github-search-review-queue-statusline.sh"
  }
}

About this resource

Source notes

  • GitHub's search documentation covers issue and pull request search qualifiers, including review-requested workflows.
  • This entry focuses on the maintainer search queue rather than the GitHub CLI gh pr list manual page that overlaps the accepted repository-health statusline source domain.

Duplicate check

Checked existing statuslines, live HeyClaude statuslines, open pull requests, and repository content for github-search-review-queue-statusline, review queue, maintainer reviews, review-requested, GitHub search statuslines, and gh-maintainer-review-queue-statusline. The earlier cli.github.com submission was self-closed after #960 showed that source domain overlaps the accepted repository-health statusline; this replacement uses GitHub search documentation and a search-queue-focused scope.

Disclosure

Editorial statusline recipe. No paid placement or affiliate link is used.

#github#reviews#maintainers#claude-code

Source citations

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.