AzureDevOpsAliases.

AzureDevOpsPullRequest(ICakeContext, AzureDevOpsPullRequestSettings) Method

Summary

Gets an Azure DevOps pull request using the specified settings.
Assembly
Cake.AzureDevOps.dll
Namespace
Cake.AzureDevOps
Containing Type
AzureDevOpsAliases

Syntax

public static AzureDevOpsPullRequest AzureDevOpsPullRequest(this ICakeContext context, AzureDevOpsPullRequestSettings settings)

Examples

Get a pull request based on the source branch:

 var pullRequestSettings =
     new AzureDevOpsPullRequestSettings(
         new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
         "refs/heads/feature/myfeature",
         AzureDevOpsAuthenticationNtlm());

 var pullRequest =
     AzureDevOpsPullRequest(
         pullRequestSettings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsPullRequestSettings Settings for getting the pull request.

Return Value

Type Description
AzureDevOpsPullRequest Description of the pull request. Returns null if pull request could not be found and ThrowExceptionIfPullRequestCouldNotBeFound is set to false.