Skip to main content

Azure Devops

@bmonty/azure-devopsv2026.10.26.1· MIT· 1d agoBEHAVIORS
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.

02Behaviors1
@bmonty/azure-devops/pull-requestv2026.10.26.1azure_devops/pull_request.ts

Global Arguments

ArgumentTypeDescription
organizationstringOrganization name (the `myorg` in dev.azure.com/myorg).
projectstringProject name or id.
repositorystringRepository name or id.
patstringPersonal access token with Code (Read & Write) scope.
baseUrl?stringService 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
ArgumentTypeDescription
sourceBranchstringBranch with the changes.
targetBranchstringBranch to merge into.
titlestring
description?string
draft?boolean
fn get(pullRequestId: number, includeThreads?: boolean)
Read a pull request's status, draft flag, reviewer votes, and comment threads
ArgumentTypeDescription
pullRequestIdnumber
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
ArgumentTypeDescription
pullRequestIdnumber
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
ArgumentTypeDescription
pullRequestIdnumber
contentstring
skipIfContains?stringDon'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)
ArgumentTypeDescription
pullRequestIdnumber
threadIdnumber
contentstring
skipIfContains?stringDon'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, ...)
ArgumentTypeDescription
pullRequestIdnumber
threadIdnumber

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