Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchers & watchers_count are incorrect #1510

Closed
k0shk0sh opened this issue Dec 11, 2016 · 2 comments
Closed

watchers & watchers_count are incorrect #1510

k0shk0sh opened this issue Dec 11, 2016 · 2 comments

Comments

@k0shk0sh
Copy link

As per the title says, the watchers & watchers_count are incorrect & always follows the stargazers_count I have seen this issue has been reported previously in #699 & that issue is reported back in 2015, now we are entering 2017 & this issue haven't been resolved.

Steps to produce the issue: using ("Accept","application/vnd.github.v3+json");

  1. Call Repositories API
  2. Validate the watchers & watchers_count with the repo in Github
  3. Incorrect count.

Is there any workaround to overcome this issue for the meantime or at least when it can be solved?

@ryangribble
Copy link
Contributor

Hey, if you have a read of #1470 there is some explanation there, but basically the fields you mentioned aren't the correct ones. There was a SubscribersCount field which was correct but it was deprecated and replaced with a separate API call. So the current official way to get this info is via a call to the client.Activity.Watching.GetAllWatchers() call.

However as the SubscribersCount field was confirmed as being supported for the lifetime of the GitHub API v3, I actually suggested re-instating this field in PR #1473 which is not yet merged

@ryangribble
Copy link
Contributor

#1473 should have resolved this with the SubscribersCount field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants