Skills
Chapter 14 of 28
Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member.
1 minute · 188 words · 6 sections
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/ (opens in a new tab)
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.
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>{
"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 memberDisplay 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 (opens in a new tab) | opened by: evanh |
If total is 0, say: “No unread review requests found for that team.”
If the script fails, run manually:
gh api notifications --paginateThen for each review_requested notification, check:
gh api repos/{repo}/pulls/{number} — skip if state == "closed" or merged_at is setgh api repos/{repo}/pulls/{number}/requested_reviewers — check teams[].namegh api orgs/{org}/teams/{slug}/members — check if author is a memberInstall this repository
npx skills add getsentry/skills/plugin marketplace add getsentry/skillsSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
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".
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
Bashskills/gh-review-requests/SKILL.mdmain, last pushed 8 August 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Sentry, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./getsentry/skills.md, and each chapter at its own .md URL.1 file · 3 KB
Everything this skill ships beside its prose. All of it is set here, as a subchapter of chapter 14.
Executable code the skill can run.