Analysing Pending Pull Requests

If you have been working with github in a team that uses PR’s (especially if you are using Dependabot) then you will need to find a way to manage PR’s across a number of projects. This gets more complex if you are working on a microservices project with 10’s of projects.

The following is a great site that can be used to help you manage this:

https://ghpr.herokuapp.com

To make life even easier here is a script to aggregate some stats.

First visit the site. Copy all the text and put it into a file called pr.txt.

grep TEAMNAME pr.txt | sort | uniq -c | sort -r | awk ‘{print “https://github.com/” $2 “/pulls ” $1}’

I typically post this to my team’s slack channel once per day.

Leave a comment