I know how to create a pull request in VSTS using gitHttpClient as in gitHttpClient.CreatePullRequestAsync(gitPullRequest, repositoryId).Result, but I am not sure how to add reviewers. Any suggestions?
Here is a sample code for creating a pull request:
public static async void CreatePullRequest(
GitHttpClient gitHttpClient,
GitPullRequest gitPullRequest,
string repositoryId
)
{
GitPullRequest pullRequest = gitHttpClient.CreatePullRequestAsync(gitPullRequest, repositoryId, cancellationToken: CancellationToken.None).Result;
}