GitHttpClientBase.UpdatePullRequestAsync 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
| UpdatePullRequestAsync(GitPullRequest, Guid, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
| UpdatePullRequestAsync(GitPullRequest, String, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
| UpdatePullRequestAsync(GitPullRequest, Guid, Guid, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
| UpdatePullRequestAsync(GitPullRequest, Guid, String, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
| UpdatePullRequestAsync(GitPullRequest, String, Guid, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
| UpdatePullRequestAsync(GitPullRequest, String, String, Int32, Object, CancellationToken) |
[Preview API] Update a pull request |
UpdatePullRequestAsync(GitPullRequest, Guid, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- repositoryId
- Guid
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdatePullRequestAsync(GitPullRequest, String, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- repositoryId
- String
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdatePullRequestAsync(GitPullRequest, Guid, Guid, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- project
- Guid
Project ID
- repositoryId
- Guid
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdatePullRequestAsync(GitPullRequest, Guid, String, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- project
- Guid
Project ID
- repositoryId
- String
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdatePullRequestAsync(GitPullRequest, String, Guid, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdatePullRequestAsync(GitPullRequest, String, String, Int32, Object, CancellationToken)
[Preview API] Update a pull request
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> UpdatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToUpdate, string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
override this.UpdatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>
Parameters
- gitPullRequestToUpdate
- GitPullRequest
The pull request content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.