ritz078 / starring

⭐️ Automatically star the npm-packages that you are using on GitHub.
MIT License
155 stars 8 forks source link

Inaccurate cli star count #9

Closed dawsbot closed 7 years ago

dawsbot commented 7 years ago

In master of r-dom:

screen shot 2017-04-14 at 11 47 22 am

After opening my browser, only two of the starred repos are reflected.

screen shot 2017-04-14 at 11 48 16 am

This is expected since I've already starred some of the repos. So instead of stating in the terminal "🌟 Successfully starred 11 repos.", it should say "🌟 Successfully starred 2 repos."

Potential Fix

First call GET /user/starred/:owner/:repo from here. Only star repos that are not already starred, since the api response to star a repo seems to be the same whether it was already starred or not.

screen shot 2017-04-14 at 11 57 38 am