Skip to main content

Complete pull request

Merge an active pull request into its target branch.

Command in the Azure DevOps toolkit · id ooa.azure_devops/complete_pull_request · 8 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.
Merge strategyStringNonoFastForwardnoFastForward (merge commit), squash, rebase or rebaseMerge.
Delete source branchBooleanNofalseDelete the source branch after merging.
Merge commit messageStringNoMessage for the merge commit.

Outputs​

OutputTypeWhat it is
statusStringStatus after the request, normally completed.
merge_statusStringMerge result, e.g. succeeded, queued or conflicts.