← ClaudeAtlas

pr-commentslisted

Manage Azure DevOps PR comments — post new code comments, read and assess existing threads. Trigger when user says "/df:pr-comments", asks to add/post a comment on a PR, review PR feedback, or check PR comment status. Input is PR id/URL, or empty to use current branch's PR.
lttr/claude-marketplace · ★ 2 · AI & Automation · score 75
Install: claude install-skill lttr/claude-marketplace
# PR Comments (Azure DevOps) Read, assess, and post code-level comments on Azure DevOps pull requests. ## API Reference The `az repos pr` CLI does not support PR threads. Use `az devops invoke` for all thread operations. Detect `project` and `repositoryId` from git remote or `az devops configure --list`. ### Fetch all threads ```bash az devops invoke \ --area git \ --resource pullRequestThreads \ --route-parameters \ project=<project> \ repositoryId=<repo-name-or-id> \ pullRequestId=<pr-id> \ -o json ``` ### Create thread on file/line ```bash az devops invoke \ --area git \ --resource pullRequestThreads \ --route-parameters \ project=<project> \ repositoryId=<repo-name-or-id> \ pullRequestId=<pr-id> \ --http-method POST \ --in-file <(cat <<'EOF' { "comments": [ { "parentCommentId": 0, "content": "Comment text (markdown supported)", "commentType": 1 } ], "threadContext": { "filePath": "/path/to/file.vue", "rightFileStart": { "line": 31, "offset": 1 }, "rightFileEnd": { "line": 38, "offset": 1 } }, "status": 1 } EOF ) ``` **Thread status:** 0 = unknown, 1 = active, 2 = fixed, 3 = won't fix, 4 = closed, 5 = by design, 6 = pending **Line targeting:** - `rightFileStart`/`rightFileEnd` - new code (most common) - `leftFileStart`/`leftFileEnd` - deleted code - Single line: same start and end - Omit `threadContext` entirely for a general (non-file) comment ### Reply to existing thread