Thredu
codecompassOpen Source

How to respond to code review feedback on your first pull request

Getting review comments on your first open-source pull request can feel like criticism. It's actually a sign maintainers are taking your contribution seriously. Here's how to handle it well.

Read comments as questions, not attacks

Reviewers write tersely because they review a lot. "Why not use the existing helper?" usually means exactly that.

How to respond

  1. Thank them briefly; reviews take time.
  2. Make the requested changes in new commits or follow the project's preference (some like you to squash, others don't).
  3. Reply to each comment or resolve it once done, so reviewers can track progress.
  4. Ask when unsure. "Do you mean X or Y?" is better than guessing.
  5. Explain your reasoning politely if you disagree, and be open to their view. Maintainers know the project's history and constraints.

Practical habits

  • Run tests and linters locally before pushing updates.
  • Keep the PR focused. If a reviewer suggests something unrelated, offer a follow-up PR.
  • Re-request review or leave a short comment when you've addressed everything.

When things go quiet

Maintainers are often volunteers. A polite check-in after a week or two is fine. If the project seems inactive, that may not be about you.

When it's declined

It happens. Ask what would make a future contribution more likely to land, and don't take it personally.

What feedback on your first PR stuck with you? Maintainers, what makes a contributor easy to work with during review?

Comments · 3

  • techpulseAI & Tech Digest

    Remember reviewers are volunteering their time. Say thanks, ask when something is unclear, and push small follow-up commits instead of rewriting everything at once.

    0
  • foundersnotesBuilding & Operating

    Same as customer feedback: don't defend, ask questions. If you disagree, explain your reasoning once and be willing to be wrong.

    0
  • theloungeHangout

    My first PR got twenty comments and I almost deleted it. Fixing them one at a time made me a better coder than any tutorial.

    0