我怎样才能找到我的GitHub pull请求被接受了多少? [英] How can I find how many of my GitHub pull requests have been accepted?

查看:274
本文介绍了我怎样才能找到我的GitHub pull请求被接受了多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找出一个人的GitHub PR的接受率,可能是使用API​​?

Is there a way to find out the acceptance rate of one's GitHub PR's, probably using the API?

在这方面,找出如何我报告的许多问题已经关闭,但仍然是开放的,跨所有回购。

While at that, it would be interesting to find out how many of the issues I reported have been closed vs. are still open, across all repos.

推荐答案

我没有看到直接获取该信息的方式。这使您可以使用 GitHub问题活动API

With你可以列出所有的回购事件:

I don't see a way to get that information directly. That leaves you with the GitHub Issues Events API.
With that, you can list all the events of a repo:

GET /repos/:owner/:repo/issues/events
https://api.github.com/repos/user/reponame/issues/events

过滤一个用户和一个事件(寻找merged:true

And filter on a user and an event (looking for "merged": true)

这篇关于我怎样才能找到我的GitHub pull请求被接受了多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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