GitHubClient.MergePullRequestAsync 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.
Merge a pull request
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeResult> MergePullRequestAsync(string repositoryOwner, string repositoryName, int pullNumber, Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeRequest input, System.Threading.CancellationToken cancellationToken = default);
abstract member MergePullRequestAsync : string * string * int * Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeResult>
override this.MergePullRequestAsync : string * string * int * Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.PullRequestMergeResult>
Public Overridable Function MergePullRequestAsync (repositoryOwner As String, repositoryName As String, pullNumber As Integer, input As PullRequestMergeRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PullRequestMergeResult)
Parameters
- repositoryOwner
- String
Repository Owner
- repositoryName
- String
Repository Name
- pullNumber
- Int32
Pull Number
- input
- PullRequestMergeRequest
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Merge a pull request response.
Remarks
This operation is used to merge a pull request for the repository.