# Get Pr Threads

> Fetch all comment threads on an Azure DevOps pull request (review comments, discussions, system messages) and use it to see existing reviewer feedback before writing your own review.

- Skill: `sasky80/get-pr-threads` (Agent Skill)
- Install (CLI): `npx skillmds@latest add sasky80/get-pr-threads`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sasky80/get-pr-threads/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: sasky80 (https://skillmd.com/u/sasky80)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/sasky80/get-pr-threads

---


# Get PR Threads

## Platform Note

- Clean-install path: use the Go command from `.github/tools/skills-go`.

## Arguments

| # | Name | Required | Description |
|---|------|----------|-------------|
| 1 | organization | Yes | Azure DevOps organization |
| 2 | project | Yes | Project name or ID |
| 3 | repositoryId | Yes | Repository name or ID |
| 4 | pullRequestId | Yes | Pull request ID |
| 5 | statusFilter | No | Keep only threads with this status (e.g. `active`, `fixed`, `closed`). Default: all statuses. |
| 6 | excludeSystem | No | `true` to remove system-generated threads (vote changes, ref updates). Default: `false`. |

## Examples

```bash
# All threads (default)
go run ./.github/tools/skills-go/cmd/skills-go get-pr-threads myorg MyProject MyRepo 42

# Only active, non-system threads
go run ./.github/tools/skills-go/cmd/skills-go get-pr-threads myorg MyProject MyRepo 42 active true

# All statuses but exclude system threads
go run ./.github/tools/skills-go/cmd/skills-go get-pr-threads myorg MyProject MyRepo 42 "" true
```

## Output

Returns JSON with a `value` array of thread objects, each containing `comments`, `threadContext` (file path and line range), and `status`.

