Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.06 KB

pull-request-counter

A quick & dirty way to compile a list of pull requests per user

What's it Do?

It uses Github's API to first pull down a list of users who have starred the py-study-group/challenges repository, and then iterates over that list, asking Github for a list of pull requests exectued. It uses that list to generate HTML which it writes to index.html.

Does it Work?

Mostly. The output is rather ugly at the moment, but I'll fix that in time.

Any Caveats?

Yeah, the pull-request counter currently maxes out at the number of entries Github returns from its API, which isn't a problem unless someone has more than 100 PRs in the designated window. Currently the user with the most PRs has 8, so I'm not going to worry about this.

However, the 100 limit also applies the list of users. If it looks like we've got more than 100 users starring the challenges repo, we'll have to add pagination to this script.

Usage

$ ./generate

This creates a static file, index.html that contains a list of the stats we're looking for.