GitHubClient.GetPullRequestsAsync 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 all Pull Requests of A Repository
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Azure.Connectors.Sdk.GitHub.Models.GeneralAPIModel>> GetPullRequestsAsync(string repositoryOwner, string repositoryName, string state = default, string head = default, string base = default, string sort = default, string direction = default, int? perPage = default, int? page = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPullRequestsAsync : string * string * string * string * string * string * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Azure.Connectors.Sdk.GitHub.Models.GeneralAPIModel>>
override this.GetPullRequestsAsync : string * string * string * string * string * string * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Azure.Connectors.Sdk.GitHub.Models.GeneralAPIModel>>
Public Overridable Function GetPullRequestsAsync (repositoryOwner As String, repositoryName As String, Optional state As String = Nothing, Optional head As String = Nothing, Optional base As String = Nothing, Optional sort As String = Nothing, Optional direction As String = Nothing, Optional perPage As Nullable(Of Integer) = Nothing, Optional page As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of List(Of GeneralAPIModel))
Parameters
- repositoryOwner
- String
Repository Owner
- repositoryName
- String
Repository Name
- state
- String
state
- head
- String
head
- base
- String
base
- sort
- String
sort
- direction
- String
direction
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Get all Pull Requests of A Repository response.
Remarks
Get all Pull Requests of A Repository.