Azure Devops
@bmonty/azure-devopsv2026.10.26.1
01README
Drive Azure DevOps pull request reviews from swamp workflows: create or find draft PRs, read reviewer votes and comment threads, publish drafts, and reply to or resolve threads.
02Behaviors
@bmonty/azure-devops/pull-requestv2026.10.26.1azure_devops/pull_request.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| organization | string | Organization name (the `myorg` in dev.azure.com/myorg). |
| project | string | Project name or id. |
| repository | string | Repository name or id. |
| pat | string | Personal access token with Code (Read & Write) scope. |
| baseUrl? | string | Service URL; change only for Azure DevOps Server. |
fn ensurePullRequest(sourceBranch: string, targetBranch: string, title: string, description?: string, draft?: boolean)
Return the open pull request from a branch to a target, creating it (draft by default) if none exists
| Argument | Type | Description |
|---|---|---|
| sourceBranch | string | Branch with the changes. |
| targetBranch | string | Branch to merge into. |
| title | string | |
| description? | string | |
| draft? | boolean |
fn get(pullRequestId: number, includeThreads?: boolean)
Read a pull request's status, draft flag, reviewer votes, and comment threads
| Argument | Type | Description |
|---|---|---|
| pullRequestId | number | |
| includeThreads? | boolean |
fn update(pullRequestId: number, draft?: boolean, title?: string, description?: string)
Publish a draft (draft: false), return it to draft, or change the title or description
| Argument | Type | Description |
|---|---|---|
| pullRequestId | number | |
| draft? | boolean | |
| title? | string | |
| description? | string |
fn addComment(pullRequestId: number, content: string, skipIfContains?: string)
Start a new comment thread on the pull request (markdown), optionally skipped if a marker is already present
| Argument | Type | Description |
|---|---|---|
| pullRequestId | number | |
| content | string | |
| skipIfContains? | string | Don't post if any existing comment contains this text; makes the call safe to retry. |
fn reply(pullRequestId: number, threadId: number, content: string, skipIfContains?: string)
Reply to a comment thread and optionally set its status (e.g. fixed)
| Argument | Type | Description |
|---|---|---|
| pullRequestId | number | |
| threadId | number | |
| content | string | |
| skipIfContains? | string | Don't post if a comment in this thread already contains this text. |
fn setThreadStatus(pullRequestId: number, threadId: number)
Set a comment thread's status (active, fixed, closed, ...)
| Argument | Type | Description |
|---|---|---|
| pullRequestId | number | |
| threadId | number |
Resources
pullRequest(infinite)— Pull request snapshot with reviewers and threads (`pr-<id>`)
branchRef(infinite)— Pull request for a source branch (`branch-<slug>`)
comment(infinite)— A comment posted or found (`comment-<threadId>-<commentId>`)
03Stats
A
100 / 100
Downloads
3
Archive size
15.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
04Platforms
05Labels