hubcaps icon indicating copy to clipboard operation
hubcaps copied to clipboard

Count of repo watchers is not provided

Open awaitlink opened this issue 5 years ago • 1 comments

Presently hubcaps offers these fields regarding watchers, stars, and forks count in hubcaps::repositories::Repo:

https://github.com/softprops/hubcaps/blob/d2d61ac6540eaae6ebb874c5026ce1d18eeec55f/src/repositories.rs#L515-L517

However, note that for legacy support reasons, watchers_count is the count of stars as well:

https://api.github.com/repos/softprops/hubcaps
{
  "forks_count": 41,
  "stargazers_count": 166,
  "watchers_count": 166,

  "subscribers_count": 4
}

Instead, subscribers_count should be offered, since that is the actual repo watcher count.

The same might need to be done in hubcaps::search::ReposItem as well.

awaitlink avatar Jan 01 '20 13:01 awaitlink

Can I take this up?

JosephLing avatar Sep 24 '20 10:09 JosephLing