Create pull request
Propose merging one branch into another, optionally linking work items.
Command in the Azure DevOps toolkit · id ooa.azure_devops/create_pull_request · 10 inputs (7 required), 1 output
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. | |
| Source branch | String | Yes | Branch with the changes. | |
| Target branch | String | Yes | Branch to merge into. | |
| Title | String | Yes | Title of the pull request. | |
| Description | String | No | Description in Markdown. | |
| Draft | Boolean | No | false | Create as a draft. |
| Work item IDs | List | No | Work item ids to link, e.g. [4711, 4712]. |
Outputs
| Output | Type | What it is |
|---|---|---|
| pull_request_id | Number | Id of the new pull request. |