IICTPIICTP

Blog / Guides

Answers3 November 20264 min read

What makes a good pull request?

A good pull request is small, has one purpose, explains why the change is needed, and is easy to review and to undo. It respects the reviewer’s time, which is the quickest route to faster, better feedback.

In this post
  1. Why does size matter?
  2. What should the description say?
  3. What should the author check before asking for review?
  4. How should a reviewer give feedback?
  5. How does this connect to blameless culture?
  6. Sources and further reading

Why does size matter?

Reviewers find fewer problems in large changes because they cannot hold all of it in mind. A change that does one thing can be understood, tested and, if needed, reverted on its own. If a pull request mixes a refactor with a new feature, split it.

What should the description say?

What changed, why it changed, how you tested it, and anything the reviewer should look at closely. Link the ticket or issue. A reviewer who understands the intent can judge whether the code achieves it.

What should the author check before asking for review?

  • Read your own diff first, as a reviewer would.
  • Run the tests and linters locally.
  • Remove debug output, commented-out code and unrelated edits.
  • Make sure no keys, passwords or personal data are in the change.

How should a reviewer give feedback?

Comment on the code, not the person. Separate must-fix issues from suggestions, explain the reason for a request, and ask a question when unsure. Approve when the change is good enough to improve the codebase, not only when it is perfect.

How does this connect to blameless culture?

Review is a shared safety net, not a test of the author. Teams that treat feedback as collaboration catch more defects and learn faster, in line with the blameless approach described in what is a blameless postmortem.

Sources and further reading

  1. Google. Engineering Practices: Code Review Developer Guide. google.github.io/eng-practices.
  2. Chacon, S. and Straub, B. Pro Git (2nd ed.). git-scm.com/book.

Go deeper: CTP™ credential · the TPBOK™ standard · Check your experience

IICTP is an independent technical credentialing body.

Keep reading

← All posts

New guides in your inbox

Plain-language guides on technical practice, now and then. You confirm your address first, and you can unsubscribe at any time.

Where do you stand?

Find the credential that fits the work you do.