diff --git a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs index 3a3233ec7b..522944f750 100644 --- a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs @@ -35,6 +35,7 @@ public async Task CreatesANewPublicRepository() Assert.True(repository.HasIssues); Assert.True(repository.HasWiki); Assert.Null(repository.Homepage); + Assert.NotNull(repository.DefaultBranch); } finally { diff --git a/Octokit/Models/Response/Repository.cs b/Octokit/Models/Response/Repository.cs index fa1f415347..ffce4a5da3 100644 --- a/Octokit/Models/Response/Repository.cs +++ b/Octokit/Models/Response/Repository.cs @@ -25,7 +25,7 @@ public class Repository public bool Fork { get; set; } public int ForksCount { get; set; } public int WatchersCount { get; set; } - public string MasterBranch { get; set; } + public string DefaultBranch { get; set; } public int OpenIssuesCount { get; set; } public DateTimeOffset? PushedAt { get; set; } public DateTimeOffset CreatedAt { get; set; }