Menu

On commenting and approving pull requests
📰
0

On commenting and approving pull requests

Hacker News·Hacker News·about 1 month ago
#0qugzJk6
#jakeworth#comments#code#comment#approve#team
Reading 0:00
15s threshold

After reviewing a lot of pull requests, I’ve settled on a simple default: if my comments are all nitpicks, suggestions, questions, or non-blocking issues, I leave them and approve the PR at the same time. Here’s some detail on how it works. But first, two clarifying questions. Why leave comments if I’m approving? Comments show that someone has thought about the problem and the solution, and cares about what’s happening to the code. Occasionally, they offer a chance to learn or to surface misunderstandings, assumptions, or hidden risks. I almost always leave a comment on each PR I review, even just observations: “This class is getting big, we might want to consider adding a presenter,” or praise: “Thanks for cleaning this up!” Why approve, if I’ve left comments that I think are worth implementing? Because I trust my team. I know that my comments will be considered, and if they’re useful, implemented. My team is fast enough to make the change. CI runs fast enough to validate it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More