When is a pull request too big?Smaller pull requests are faster to write and easier to review. Here are 4 tests to see if your PR might be too big.
Smaller pull requests are faster to write and easier to review. But how do you know when your pull request is getting “too big”?
There’s no hard and fast rule, but here are a few “yellow flags” for your consideration. If you start to see your PR crossing one of these thresholds, ask if you can push what you’ve done, and save the rest for another PR.
- Does the PR have more than 50-100 lines of changes?
- Does the PR touch more than 5-10 files?
- Does the PR contain more than 5-10 commits?
- Does the PR contain changes written more than 8 hours apart?
Can Pull Requests Be Replaced?
Yesterday Kief Morris published a thought-proviking article, Why your team doesn’t need to use pull requests. The central thesis is that pull requests introduce a harmful human delay into the software delivery process, and that there are better alternatives. This promise excited me, as I read the introduction to the piece. But I found that the proposed solutions left me with more questions than answers. The post generated a lot of knee-jerk reactions on Twitter, my own among them:
My Funny Habit: Code Review for Solo Projects
I have a funny habit. Well, I guess it’s a funny habit. I never thought of it as funny. Then people started pointing it out to me, and asking why I did such a funny thing. A little over a hear ago, this funny habit came up during a job interview: “It’s funny how you make pull requests for your own projects on GitHub.” Yes. That’s right. My funny habit is that, even on solo projects (and yes, even the private ones I never publish), I create pull requests.