Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Update the vote on GitPullRequest #303

Open
smg-bg opened this issue Jan 7, 2021 · 0 comments
Open

Update the vote on GitPullRequest #303

smg-bg opened this issue Jan 7, 2021 · 0 comments

Comments

@smg-bg
Copy link

smg-bg commented Jan 7, 2021

I was trying to update the vote for the currently authenticated user. If I use:

var updatedVote = new[] { new IdentityRefWithVote { Id = _connection.AuthorizedIdentity.Id.ToString(), Vote = 10 } };

await _gitClient.UpdatePullRequestReviewersAsync(updatedVote, repositoryId, pullRequestId);

I'm getting a:

Microsoft.VisualStudio.Services.Common.VssServiceException: 'Invalid argument value.
Parameter name: You can only reset votes to zero (NoVote) using this REST call. You cannot vote for another user.'

I would appreciate any ideas / suggestions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant