Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find how many of my GitHub pull requests have been accepted?

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.

like image 670
Dan Dascalescu Avatar asked Oct 20 '22 14:10

Dan Dascalescu


1 Answers

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

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

like image 164
VonC Avatar answered Oct 24 '22 00:10

VonC