`watchers` count is being returned same as `stars`
Closed this issue · 1 comments
brc-dd commented
Environment
Using the version deployed at https://ungh.cc
Reproduction
Visit https://ungh.cc/repos/unjs/h3, it'll give some result like this:
{
"repo": {
"id": 313641207,
"name": "h3",
"repo": "unjs/h3",
"description": "⚡️ Minimal h(ttp) framework built for high performance and portability ",
"createdAt": "2020-11-17T14:15:44Z",
"updatedAt": "2023-04-13T14:21:41Z",
"pushedAt": "2023-04-13T10:42:54Z",
"stars": 1524,
"watchers": 1524, // <-- this value isn't correct
"forks": 79
}
}
Describe the bug
The repo.watchers
value being returned is same as repo.stars
which is not true.
Additional context
No response
Logs
No response
pi0 commented
Thanks for notice. Another strange behavior of gh API, had to use subscribers_count
!