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