From 9a20169b124d889ea28c40625f18acef24773d4d Mon Sep 17 00:00:00 2001 From: Ryan Gribble Date: Sun, 25 Sep 2016 21:21:42 +1000 Subject: [PATCH] Remove WatchersCount as due to historic reasons this is actually the starred count and not the watching count (which is in SubscribersCount). See #699 for more info --- Octokit/Models/Response/Repository.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Octokit/Models/Response/Repository.cs b/Octokit/Models/Response/Repository.cs index 1141dc54f2..e06e9595b6 100644 --- a/Octokit/Models/Response/Repository.cs +++ b/Octokit/Models/Response/Repository.cs @@ -14,7 +14,7 @@ public Repository(long id) Id = id; } - public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, User owner, string name, string fullName, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int watchersCount, int subscribersCount, long size) + public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, User owner, string name, string fullName, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int subscribersCount, long size) { Url = url; HtmlUrl = htmlUrl; @@ -47,7 +47,6 @@ public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, st HasDownloads = hasDownloads; HasPages = hasPages; SubscribersCount = subscribersCount; - WatchersCount = watchersCount; Size = size; } @@ -113,8 +112,6 @@ public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, st public int SubscribersCount { get; protected set; } - public int WatchersCount { get; protected set; } - public long Size { get; protected set; } internal string DebuggerDisplay