Edit

Share via


GitHttpClientBase.GetPullRequestCommitsAsync Method

Definition

Overloads

GetPullRequestCommitsAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(Guid, String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(String, Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(String, String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

GetPullRequestCommitsAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

repositoryId
Guid

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestCommitsAsync(String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

repositoryId
String

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestCommitsAsync(Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

project
Guid

Project ID

repositoryId
Guid

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestCommitsAsync(Guid, String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

project
Guid

Project ID

repositoryId
String

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestCommitsAsync(String, Guid, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

project
String

Project ID or project name

repositoryId
Guid

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestCommitsAsync(String, String, Int32, Object, CancellationToken)

[Preview API] Get the commits for the specified pull request.

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

Parameters

project
String

Project ID or project name

repositoryId
String

ID or name of the repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to