如何订阅Github用户的新星? [英] How can I subscribe to a Github users' new stars?

查看:72
本文介绍了如何订阅Github用户的新星?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究创建一个服务,该服务在用户启动Github存储库时会鸣叫. Github Webhooks API是理想的,但它仅支持组织和存储库的webhooks,而不支持用户.

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 提供确实需要的信息,但是它是静态的.

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

我想获取新加星标的存储库,而不必轮询/watched端点.有什么建议吗?

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

推荐答案

我想获取新加星标的存储库,而不必轮询/watched端点.有什么建议吗?

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.

这篇关于如何订阅Github用户的新星?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆