Skip to content

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

License

Notifications You must be signed in to change notification settings

py-study-group/pull-request-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •