TfsPullRequestSystemAliases.

TfsVotePullRequest(ICakeContext, TfsPullRequestSettings, TfsPullRequestVote) Method

Summary

Votes for the Team Foundation Server or Visual Studio Team Services pull request using the specified settings.

Syntax

public static void TfsVotePullRequest(this ICakeContext context, TfsPullRequestSettings settings, TfsPullRequestVote vote)

Examples

Vote 'Approved' to a TFS pull request:

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

     TfsVotePullRequest(
         pullRequestSettings,
         TfsPullRequestVote.Approved);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings TfsPullRequestSettings Settings for accessing the pull request system.
vote TfsPullRequestVote The vote for the pull request.

Return Value

Type Description
void
GitHub