Story
How it all started
Friend of mine (@pkosiec) said that I have more merged PRs than him because I merged more PRs with small changes. To prove he is wrong I decided to fetch all my commits that changed less than 50 lines.
Most of the people - 3 lines in bash with sort
, grep
, head
, awk
, and a few more readable as heck commands, and
we are done.
I thought, no way, let's do it right in just 10ish lines of Go. But you know, it's Go, it's never 10ish...
Finally, with my powerful "10ish" lines of Go code I ran it against our repo to prove my right.
# List all commits with max 50 changed (added + deleted) lines.
gimme commits --author 'Mateusz Szostok' --changes '<50'
Guess what? The lucky bastard was right.
But then I thought, let's learn more, gimme
more nasty metrics about...
- Top authors who merged PRs without comments a.k.a lucky guys
- Top reviewers who approves PRs without leaving even a single comment a.k.a sleepy approvers
- What's more, who reviews PRs bigger than 5000 lines without leaving any comment? (a.k.a bug welcomers) 🕵️
- Top approvers which leaves the most comments per PR a.k.a nit-picky guy
- Top approvers with comments for PR ≥ 5000 lines a.k.a fat PR killer
- Top approver w/o comments for PR ≤ 99 lines a.k.a tiny PR hunter
And a few more normal ones:
- Most popular day for your PR to be merged
- Most discussed PRs
- Top biggest PRs
- Top smallest PRs
And that's how the gimme
was born 🔥 Like the idea? Give a GitHub star!