Edit

Share via


GitHttpClientBase.UpdatePullRequestReviewersAsync Method

Definition

Overloads

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

project
String

Project ID or project name

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

project
String

Project ID or project name

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

project
Guid

Project ID

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, String, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdatePullRequestReviewersAsync(IEnumerable<IdentityRefWithVote>, Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.

public virtual System.Threading.Tasks.Task UpdatePullRequestReviewersAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> patchVotes, Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UpdatePullRequestReviewersAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

patchVotes
IEnumerable<IdentityRefWithVote>

IDs of the reviewers whose votes will be reset to zero

project
Guid

Project ID

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to