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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Organization address (URL) | String | Yes | Organization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server. | |
| Personal access token | Credential | Yes | Personal 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. | |
| Project | String | Yes | Project name, e.g. Finance Portal. | |
| Repository | String | Yes | Repository name or id, e.g. finance-portal-api. | |
| Pull request ID | Number | Yes | Pull request id. |
Outputs
| Output | Type | What it is |
|---|---|---|
| pull_request | Dictionary | id, title, description, status, is_draft, merge_status, created_by, source_branch, target_branch, created, closed, repository, last_source_commit. |
| status | String | active, completed or abandoned. |