GitHttpClientBase.GetPullRequestLabelsAsync 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
| GetPullRequestLabelsAsync(String, String, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
| GetPullRequestLabelsAsync(String, Guid, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
| GetPullRequestLabelsAsync(Guid, String, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
| GetPullRequestLabelsAsync(Guid, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
| GetPullRequestLabelsAsync(String, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
| GetPullRequestLabelsAsync(Guid, Guid, Int32, String, Object, CancellationToken) |
[Preview API] Get all the labels assigned to a pull request. |
GetPullRequestLabelsAsync(String, String, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(string project, string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelsAsync(String, Guid, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(string project, Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelsAsync(Guid, String, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(Guid project, string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelsAsync(Guid, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- repositoryId
- Guid
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelsAsync(String, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- repositoryId
- String
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelsAsync(Guid, Guid, Int32, String, Object, CancellationToken)
[Preview API] Get all the labels assigned to a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>> GetPullRequestLabelsAsync(Guid project, Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelsAsync : Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
override this.GetPullRequestLabelsAsync : Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.