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