mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Added PreviousFileName property to GitHubCommitFile. This property is returned from the GitHub API when a file was modified. Check https://api.github.com/repos/octokit/octokit.net/commits/997e955f for an example of returning a commit containing file renames.
This commit is contained in:
@@ -76,6 +76,16 @@ public class RepositoryCommitsClientTests
|
||||
var list = await _fixture.GetAll("octokit", "octokit.net", request);
|
||||
Assert.NotEmpty(list);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task CanGetCommitWithRenamedFiles()
|
||||
{
|
||||
var commit = await _fixture.Get("octokit", "octokit.net", "997e955f38eb0c2c36e55b1588455fa857951dbf");
|
||||
|
||||
Assert.True(commit.Files
|
||||
.Where(file => file.Status == "renamed")
|
||||
.All(file => string.IsNullOrEmpty(file.PreviousFileName) == false));
|
||||
}
|
||||
}
|
||||
|
||||
public class TestsWithNewRepository : IDisposable
|
||||
|
||||
Reference in New Issue
Block a user