Skip to main content

Get pull request

Read a pull request by id.

Command in the Azure DevOps toolkit · id ooa.azure_devops/get_pull_request · 5 inputs (5 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.
Pull request IDNumberYesPull request id.

Outputs​

OutputTypeWhat it is
pull_requestDictionaryid, title, description, status, is_draft, merge_status, created_by, source_branch, target_branch, created, closed, repository, last_source_commit.
statusStringactive, completed or abandoned.