How can I subscribe to a Github users' new stars?

时光毁灭记忆、已成空白 提交于 2019-12-14 03:56:57

问题


I am looking into creating a service that tweets whenever a user stars a Github repository. The Github Webhooks API would be ideal, but it only supports webhooks for orgs and repos, not users.

https://api.github.com/users/metaraine/watched provides exactly the information needed, but it is static.

I want to get newly starred repos without having to poll the /watched endpoint. Any suggestions?


回答1:


I want to get newly starred repos without having to poll the /watched endpoint. Any suggestions?

Yeah, that's not possible currently. An alternative would be to poll the Events endpoint for the user and look for events which indicate that the user starred a repository. But that's still polling.



来源:https://stackoverflow.com/questions/27300356/how-can-i-subscribe-to-a-github-users-new-stars

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!