Skip to content

Commit

Permalink
Remove WatchersCount as due to historic reasons this is actually the …
Browse files Browse the repository at this point in the history
…starred count and not the watching count (which is in SubscribersCount). See octokit#699 for more info
  • Loading branch information
ryangribble committed Sep 25, 2016
1 parent ca8fe09 commit 9a20169
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Octokit/Models/Response/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a20169

Please sign in to comment.