GitHubClient.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.
Update a pull request
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequest> UpdatePullRequestAsync(string repositoryOwner, string repositoryName, int pullNumber, Azure.Connectors.Sdk.GitHub.Models.PullRequestUpdateRequest input, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdatePullRequestAsync : string * string * int * Azure.Connectors.Sdk.GitHub.Models.PullRequestUpdateRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequest>
override this.UpdatePullRequestAsync : string * string * int * Azure.Connectors.Sdk.GitHub.Models.PullRequestUpdateRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequest>
Public Overridable Function UpdatePullRequestAsync (repositoryOwner As String, repositoryName As String, pullNumber As Integer, input As PullRequestUpdateRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PullRequest)
Parameters
- repositoryOwner
- String
Repository Owner
- repositoryName
- String
Repository Name
- pullNumber
- Int32
Pull Number
- input
- PullRequestUpdateRequest
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Update a pull request response.
Remarks
This operation is used to update a pull request for the repository. To update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.