-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Repository WatchersCount actually refers to Starred #2509
Comments
Interesting, good catch! I wonder if there is a transposed element in the OpenAPI descriptions - given how we dynamically hydrate the response object this is most likely on the GitHub REST API side of things. I'll put it on the list of things to look into unless anyone else has time to grok the OpenAPI descriptions. |
Seems like GitHub is no longer using the |
Subscribers_count shows the actual watchers_count. Many people think they are retrieving the watchers_count, but are actually retrieving the stargazers_count... This is because the GitHub UI is still calling subscribers, "Watchers". To prevent many others from falling into this trap, a warning should be added to the watchers_count property. On top of this, subscribers_count is no longer deprecated as far as the GitHub documentation goes. Fixes octokit#2509 Signed-off-by: Brend Smits <[email protected]>
@Brend-Smits Thanks for tracking this down! It's not an ideal situation. Hopefully, in the future, with versioning - this type of thing will be a non-issue as in, fields will be more easily deprecated. |
…unt. (#2519) Subscribers_count shows the actual watchers_count. Many people think they are retrieving the watchers_count, but are actually retrieving the stargazers_count... This is because the GitHub UI is still calling subscribers, "Watchers". To prevent many others from falling into this trap, a warning should be added to the watchers_count property. On top of this, subscribers_count is no longer deprecated as far as the GitHub documentation goes. Fixes #2509 Signed-off-by: Brend Smits <[email protected]>
The response for getting a repository contains a watchers_count property. This doesn't actually refer to watchers, but to Stars (unless stars add watchers?). I've created a repository, added a watch via the Activity.Watch client and the property is 0 when retrieved. If I start it, the property becomes 1.
I wonder if there is something wrong in the background as watchers_count seems to follow stargazers.
This shows what I mean, it's watched by 1 and starred by 0, but watchers_count and stargazers are both 0.
The text was updated successfully, but these errors were encountered: