This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AzureDevOps.
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 |
---|---|
Cake |
|
Cake |
|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
settings | Azure |
Settings for getting the pull request. |
Return Value
Type | Description |
---|---|
Azure |
Description of the pull request.
Returns null if pull request could not be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false . |