-
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
WatchersCount on repository incorrect #699
Comments
@DaveWM I think this is actually a bug in the GitHub API - https://api.github.com/repos/octokit/octokit.net cc @pengwynn |
It's confusing but that's expected, because history. You'll find what the UI calls "Watchers" in the |
@pengwynn thanks for the details |
@haacked gah, you're right - we can still fix this. We could map |
I'd rather have the property name match the api field name as much as possible. We're not 1.0 yet, we can do whatever the hell we want. 😛 Let's just match the API canonical names. |
Fiiiiine 😛 |
😛 It's just my preference. I think it's a good rule of thumb. But I'm open to strong arguments to the contrary in specific cases. 😄 |
Also, if we're all in agreement, would you like to submit a PR with this change @DaveWM? |
I'm just being pre-caffeine silly here. As the behaviour isn't going to change for the lifetime of v3, I'm 👍 with hiding away this incorrect field. |
removed WatchedCount property from Repository, resolves #699
…starred count and not the watching count (which is in SubscribersCount). See octokit#699 for more info
It looks like the WatchersCount property is set incorrectly on the repository object, it's always the same as the StargazersCount property. For example, it is showing as 605 for this repo when it should be 80. Will submit a PR for this when I have time :).
The text was updated successfully, but these errors were encountered: