Skip to main content

List pull requests

List pull requests of a repository, filtered by status and target branch.

Command in the Azure DevOps toolkit · id ooa.azure_devops/list_pull_requests · 7 inputs (4 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Organization address (URL)StringYesOrganization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server.
Personal access tokenCredentialYesPersonal access token from the vault, with the scopes this action needs (e.g. Work Items read and write); a Microsoft Entra ID token works too. Or leave it empty and choose a connection that signs in, which gets and renews the token.
ProjectStringYesProject name, e.g. Finance Portal.
RepositoryStringYesRepository name or id, e.g. finance-portal-api.
StatusStringNoactiveactive, completed, abandoned or all.
Target branchStringNoOnly pull requests into this branch.
Maximum resultsNumberNo100Most items to return; pages are read until this many are found.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, title, status, is_draft, created_by, source_branch, target_branch, created, merge_status.
countNumberNumber of pull requests returned.