Edit

Share via


GitHttpClientBase.CreatePullRequestReviewersAsync Method

Definition

Overloads

CreatePullRequestReviewersAsync(IdentityRef[], Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], Guid, String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], String, Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], String, String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

CreatePullRequestReviewersAsync(IdentityRef[], Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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

CreatePullRequestReviewersAsync(IdentityRef[], String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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

CreatePullRequestReviewersAsync(IdentityRef[], Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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

CreatePullRequestReviewersAsync(IdentityRef[], Guid, String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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

CreatePullRequestReviewersAsync(IdentityRef[], String, Guid, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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

CreatePullRequestReviewersAsync(IdentityRef[], String, String, Int32, Object, CancellationToken)

[Preview API] Add reviewers to a pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>> CreatePullRequestReviewersAsync(Microsoft.VisualStudio.Services.WebApi.IdentityRef[] reviewers, string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>
override this.CreatePullRequestReviewersAsync : Microsoft.VisualStudio.Services.WebApi.IdentityRef[] * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.IdentityRefWithVote>>

Parameters

reviewers
Microsoft.VisualStudio.Services.WebApi.IdentityRef[]

Reviewers to add to the pull request.

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