GitHttpClientBase.CreatePullRequestReviewerAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreatePullRequestReviewerAsync(IdentityRefWithVote, String, String, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, string project, string repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set 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.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestReviewerAsync(IdentityRefWithVote, String, Guid, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, string project, Guid repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set 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.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestReviewerAsync(IdentityRefWithVote, Guid, String, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, Guid project, string repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set 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.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestReviewerAsync(IdentityRefWithVote, Guid, Guid, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, Guid project, Guid repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set 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.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestReviewerAsync(IdentityRefWithVote, Guid, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, Guid repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
- repositoryId
- Guid
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestReviewerAsync(IdentityRefWithVote, String, Int32, String, Object, CancellationToken)
[Preview API] Add a reviewer to a pull request or cast a vote.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote> CreatePullRequestReviewerAsync(Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote reviewer, string repositoryId, int pullRequestId, string reviewerId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
override this.CreatePullRequestReviewerAsync : Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>
Parameters
- reviewer
- IdentityRefWithVote
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
- repositoryId
- String
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- reviewerId
- String
ID of the reviewer.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.