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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s