Catalog
getsentry/gh-review-requests

getsentry

gh-review-requests

Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to review", "show my review requests", "what needs my review", "fetch GitHub review requests", or "check team review queue".

global
Allowed Tools
Bash
New~604
v1.0Saved Jul 11, 2026

GitHub Review Requests

Fetch unread review_requested notifications for open (unmerged) PRs, filtered by a GitHub team.

Requires: GitHub CLI (gh) authenticated.

Requires: The uv CLI for python package management, install guide at https://docs.astral.sh/uv/getting-started/installation/

Step 1: Identify the Team

If the user has not specified a team, ask:

Which GitHub team should I filter by? (e.g. streaming-platform)

Accept either a team slug (streaming-platform) or a display name ("Streaming Platform") — convert to lowercase-hyphenated slug before passing to the script.

Step 2: Run the Script

uv run scripts/fetch_review_requests.py --org getsentry --teams <team-slug>

To filter by multiple teams, pass a comma-separated list:

uv run scripts/fetch_review_requests.py --org getsentry --teams <team slugs>

Script output

{
  "total": 3,
  "prs": [
    {
      "notification_id": "12345",
      "title": "feat(kafka): add workflow to restart a broker",
      "url": "https://github.com/getsentry/ops/pull/19144",
      "repo": "getsentry/ops",
      "pr_number": 19144,
      "author": "bmckerry",
      "reasons": ["opened by: bmckerry"]
    }
  ]
}

reasons will contain one or both of:

  • "review requested from: <Team Name>" — the team is a requested reviewer
  • "opened by: <login>" — the PR author is a team member

Step 3: Present Results

Display results as a markdown table with full URLs:

# Title URL Reason
1 feat(kafka): add workflow to restart a broker https://github.com/getsentry/ops/pull/19144 opened by: evanh

If total is 0, say: "No unread review requests found for that team."

Fallback

If the script fails, run manually:

gh api notifications --paginate

Then for each review_requested notification, check:

  • gh api repos/{repo}/pulls/{number} — skip if state == "closed" or merged_at is set
  • gh api repos/{repo}/pulls/{number}/requested_reviewers — check teams[].name
  • gh api orgs/{org}/teams/{slug}/members — check if author is a member
Files2
2 files · 14.0 KB

Select a file to preview

Overall Score

82/100

Grade

B

Good

Safety

82

Quality

85

Clarity

82

Completeness

78

Summary

This skill fetches unread GitHub notifications for pull requests where review is requested from a specified team or opened by team members. It uses the GitHub CLI and a Python script (via `uv`) to query the GitHub API, filter results, and display them in a markdown table format.

Detected Capabilities

shell execution (bash)gh cli invocationgithub api queriesjson parsingfile output (stdout)python script execution

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

find review requestscheck team prsgithub notifications reviewcode review queuepr review status

Risk Signals

INFO

GitHub API queries via gh cli

scripts/fetch_review_requests.py:gh() function
INFO

Subprocess execution of gh commands with captured output

scripts/fetch_review_requests.py:gh() function, lines 20-27
INFO

Command-line argument parsing for team slugs

scripts/fetch_review_requests.py:main() function, lines 30-33

Referenced Domains

External domains referenced in skill content, detected by static analysis.

api.github.comdocs.astral.shgithub.comwww.apache.org

Use Cases

  • Check which PRs require code review from your team
  • Find open PRs authored by team members
  • Identify review-requested notifications for multiple teams
  • Build a team review queue dashboard
  • Integrate PR review tracking into CI/CD or notification workflows

Quality Notes

  • Clear step-by-step workflow with team identification, script execution, and result presentation
  • Well-documented script output schema with example JSON structure
  • Includes fallback instructions for manual API queries if script fails
  • Comprehensive Python script with proper error handling in gh() helper function
  • Argument parsing allows flexible multi-team filtering via comma-separated list
  • Script correctly filters by PR state (skips closed/merged PRs) and team membership
  • Markdown table output format is easy to read and includes full GitHub URLs
  • Script output includes context reasons (review requested vs. opened by team member)
  • Requires external dependencies clearly documented (GitHub CLI authenticated, uv CLI)
  • Hardcoded default org as 'getsentry' with clear override capability
Model: claude-haiku-4-5-20251001Analyzed: Jul 11, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add getsentry/gh-review-requests to your library

Command Palette

Search for a command to run...