Skip to main content

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​

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.
Source branchStringYesBranch with the changes.
Target branchStringYesBranch to merge into.
TitleStringYesTitle of the pull request.
DescriptionStringNoDescription in Markdown.
DraftBooleanNofalseCreate as a draft.
Work item IDsListNoWork item ids to link, e.g. [4711, 4712].

Outputs​

OutputTypeWhat it is
pull_request_idNumberId of the new pull request.