← Code Review learning path
Code Review · Module 2 of 8

Preparing a good pull request

Make your change easy to review.

📖 Key ideas

  1. Keep pull requests small and focused on one purpose; a few hundred changed lines is easier to review well than thousands.
  2. Write a clear title and description: what changed, why, and how you tested it.
  3. Add screenshots for UI changes and steps to reproduce for bug fixes.
  4. Review your own diff first and remove debug prints, commented-out code and unrelated changes.
  5. Make sure tests and the automatic checks pass before asking for review.
💡 Real-life example: Handing a reviewer a 3,000-line pull request is like asking a friend to proof-read a whole book in ten minutes: they will skim and miss things.
DiffThe lines added and removed by a change
DescriptionText explaining what changed and why
Self-reviewReading your own diff before asking others
CI checksAutomatic build and tests run on every change