PostHog Handbook Library / Engineering

834 words. Estimated reading time: 4 min.

How we review PRs

Almost all PRs made to PostHog repositories will need a review from another engineer. We do this because, almost every time we review a PR, we find a bug, a performance issue, unnecessary code or UX that could have been confusing. Here's how we do it:

Before requesting a review

The best way to get a fast, useful review is to make your PR easy to review.

Have a flick through the code changes

What to look for:
What _not_ to look for:

Run the code yourself

What to look for:
What _not_ to look for:

The emphasis should be on getting something out quickly. Endless review cycles sap energy and enthusiasm.

Turnaround

Aim to respond to review requests within one working day. You don't have to finish the review — even a quick "I'll look at this properly tomorrow" or "this needs someone from [@team-name] to review" unblocks the author and sets expectations. Leaving a PR in limbo for days is worse than a fast "I can't review this."

Requesting a review outside your team

Not every team has someone available to review your PR right away. Posting in #dev-stamp-exchange is a way to ask for a quick-turnaround review from someone outside your team. This is fine — but quick turnaround doesn't mean lower standards.

When this is appropriate:
What's still expected from the reviewer:
When to push back instead of approving:

Review comment conventions

Use prefixes on your review comments so the author knows what actually needs to change before merging:

If a comment doesn't have a prefix, assume it's a suggestion. This avoids the "is this a blocker or just a thought?" ambiguity that slows reviews down.

Canonical URL: https://posthog.com/handbook/engineering/how-we-review

GitHub source: contents/handbook/engineering/how-we-review.md

Content hash: 8d8fbdd316bcba64