AzureDevOpsAliases.

AzureDevOpsVotePullRequest(ICakeContext, AzureDevOpsPullRequestSettings, AzureDevOpsPullRequestVote) Method

Summary

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

Syntax

public static void AzureDevOpsVotePullRequest(this ICakeContext context, AzureDevOpsPullRequestSettings settings, AzureDevOpsPullRequestVote vote)

Examples

Vote 'Approved' to a Azure DevOps Server pull request:

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

 AzureDevOpsVotePullRequest(
     pullRequestSettings,
     AzureDevOpsVotePullRequest.Approved);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsPullRequestSettings Settings for accessing the pull request.
vote AzureDevOpsPullRequestVote The vote for the pull request.

Return Value

Type Description
void