SpinlockLabs / github.dart

GitHub Client Library for Dart

Home Page:https://pub.dev/packages/github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository.watchersCount is same as Repository.stargazersCount

omegaui opened this issue · comments

commented

Screenshot from 2022-06-09 12-40-09

I am currently writing a view only dashboard in Flutter using this amazing library,
While implementing the Repo-Info part, I found out that the Repository.watchersCount is exactly the same as Repository.stargazersCount.

👋 Thanks for reporting! @robrbecker will take a look.

@omegaui after some quick googling, this isn't an issue with this library. It is intended behavior from the Github API. In the past you could watch a repo. It was renamed to starring. In order to prevent breaking applications, the new field was added and the old was left. They are the same thing though.
See https://github.community/t/bug-watchers-always-same-as-stargazers-count-in-api-user-starred/14224 for the official response.