Created
June 14, 2020 14:43
-
-
Save rafaeldalsenter/b5391f75edfcea63d4a10bde898bac2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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