GitHttpClientBase.CreatePullRequestLabelAsync 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
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, Guid, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, String, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, Guid, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
| CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, String, Int32, String, Object, CancellationToken) |
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label. |
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign to the pull request.
- 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
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign to the pull request.
- 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
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, Guid, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, Guid project, Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, Guid, String, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, Guid project, string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * Guid * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, Guid, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, string project, Guid repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePullRequestLabelAsync(WebApiCreateTagRequestData, String, String, Int32, String, Object, CancellationToken)
[Preview API] Create a label for a specified pull request. The only required field is the name of the new label.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> CreatePullRequestLabelAsync(Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData label, string project, string repositoryId, int pullRequestId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.CreatePullRequestLabelAsync : Microsoft.TeamFoundation.Core.WebApi.WebApiCreateTagRequestData * string * string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
Label to assign 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.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.