Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Created June 14, 2020 14:43
public async Task<IList<PullRequestFileDto>> GetFilesFromPullRequest(long repositoryId, int pullRequest)
{
var result = await _githubClient.PullRequest.Files(repositoryId, pullRequest);
return result.Select(x => new PullRequestFileDto
{
Additions = x.Additions,
Deletions = x.Deletions,
Path = x.Patch,
FileName = x.FileName
}).ToList();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment