Count your PRs in a Github Organization
/ 1 min read
I wanted to count the number of PRs I had opened at Maze over the past 4+ years.
This is the command I used to get the count:
gh repo list <ORGANIZATION NAME> --limit 100 | awk '{print $1}' | xargs -I {} gh pr list --author <USER NAME> --repo {} --state all --limit 1000 | wc -lIt’s a little slow, but it works. I have done 838 PRs in the past 4 years. Interested to see how that evolves over the next few.