Reviewing other people's pull requests (and why it grows your profile)
Updated
Open source is not only about writing code. Projects also need people who read proposed changes carefully, try them out, ask useful questions, and help authors make their work safer and easier to maintain. You do not need to be a senior developer to start reviewing. A focused review of a small change can help its author and teach you how a real codebase works.
A review is not a contest to find the most comments. Your goal is to understand what the pull request (PR) is trying to do, identify issues that matter, and explain them in a way the author can act on. This guide covers a repeatable review process, respectful feedback, GitHub contribution credit, and the way DevTrack records review activity.
1. Understand the change before judging it
Start with the PR description and the issue or discussion it references. Write down the intended behavior in one sentence. Then read the diff from top to bottom. Look at nearby code when a function, component, or data model is unfamiliar; the diff alone may not show the conventions the project already follows.
- Check the scope: Does the change solve the stated problem? Are unrelated refactors or generated files included?
- Trace the behavior: Follow inputs through the changed code. Check empty values, unexpected types, boundary values, permissions, and failure paths where relevant.
- Look at tests: Are important success and failure cases covered? Do the tests assert the outcome rather than merely repeating the implementation?
- Consider compatibility: Could the change break an existing caller, API response, saved record, keyboard flow, or supported platform?
- Check maintainability: Are names understandable? Is the code consistent with nearby patterns? Is user-facing behavior or configuration documented when needed?
Do not assume every preference is a defect. A different naming choice or formatting style may be harmless if it follows the repository's conventions. Prioritize correctness, security, data loss, accessibility, and regressions over personal style.
2. Run the change when you can
Read the project's contribution instructions before running commands. If setup is practical, install the documented dependencies, run the relevant tests, and try the behavior described by the author. Report what you actually ran, including the command and whether it passed. If you cannot run the project, say so; a careful static review is still useful, but it is not the same as runtime verification.
Treat automated checks as evidence, not a substitute for reading the code. A green test suite cannot prove that every edge case is covered. A failing check may also be unrelated to the PR, so compare the failure with the base branch or ask the author for context before calling it a regression.
3. Write comments an author can use
A useful review comment identifies a specific location, explains the consequence, and suggests a direction. For example, instead of saying "This is wrong", explain: "If this value is empty, the request still reaches the database. Could we validate it before this call? That would keep invalid records from being created."
- Be specific: Point to the affected line and describe a reproducible scenario.
- Explain impact: Say what could break and who or what is affected.
- Ask, do not belittle: "Could we handle the timeout here?" invites discussion; "You forgot error handling" attacks the author.
- Separate blockers from suggestions: Mark a correctness or security issue clearly. Label optional polish as non-blocking or a nit.
- Acknowledge good work: Mention a clear test, thoughtful edge-case fix, or helpful explanation when you see one.
When a small replacement is obvious, GitHub supports suggested changes in review comments. SeeGitHub's guide to incorporating feedback and suggested changes. Suggestions should remain easy to understand and should not hide a larger design decision inside a one-click edit.
4. Choose the right review submission
GitHub's pull request review flow offers three submission types: Comment, Approve, and Request changes. ReadGitHub's documentation about pull request reviewsfor how these work. Use a comment when you have observations or questions but no approval decision. Approve only when you have reviewed the change and are comfortable with it. Request changes when you have identified a concrete issue that should be fixed before merge.
Repository permissions and branch protection determine whose approval can satisfy a merge requirement. If you are a new contributor and do not have the authority to approve, you can still leave a constructive comment or report your findings to the maintainers. Never use "Request changes" just to express a preference.
5. How reviews appear on your GitHub profile
GitHub can include pull request reviews in your contribution activity, but eligibility has an important condition: the review must be made in a standalone repository, not a fork. GitHub'sprofile contributions referenceexplains which activities count and the repository requirements. Therefore, do not assume that every review on every public repository will add a square to your graph. The contribution settings also let you control whether eligible private contributions are shown.
A submitted review is also visible in the pull request conversation, where collaborators can read the comments and review decision. The contribution graph is a summary, not a quality score: a thoughtful review can be valuable even when it does not qualify for graph credit.
6. How reviews affect your DevTrack stats
DevTrack's score v2 gives the Impact signal 30% of the overall score. Within that signal, pull requests contribute one unit each and reviews contribute half a unit each. This means reviews are recognized, but they do not count as much as a pull request in the impact calculation. The scoring model also uses period targets and cohort-relative scoring, so the exact points shown on a leaderboard depend on the period and the other contributors being ranked.
DevTrack's lifetime XP system awards 15 XP per review. XP is separate from the rolling leaderboard score: it accumulates from lifetime activity and contributes to your level. You can read more in theguide to the DevTrack score. Review activity is one part of a broader profile; it does not guarantee a particular rank, badge, or invitation to maintain a project.
A simple review routine
- Pick a small, active PR in a project whose purpose you understand.
- Read the issue, description, diff, and relevant surrounding code.
- Check tests and run the documented commands if possible.
- Write only actionable comments, with impact and evidence.
- Submit the appropriate review type and respond kindly if the author asks a follow-up question.
If you are preparing your own contribution too, use thepull request checklistto make it easier for someone else to review your work. Good reviewers and good PR authors help create the same kind of welcoming project: one where feedback is specific, respectful, and focused on improving the software together.
Quick answers
- Do reviews on every public GitHub repository count on my contribution graph?
- No. GitHub's contribution rules require reviews to be made in a standalone repository, not a fork. Other contribution eligibility rules and your profile settings can also affect what is displayed.
- Can I review a pull request if I am not a maintainer?
- You can still read the diff, test the change where practical, and leave useful feedback. Whether your approval can satisfy a merge requirement depends on the repository's permissions and branch protection settings.
- How much does a review add to DevTrack?
- A review contributes half a unit to the Impact signal, which is 30% of DevTrack's score, and earns 15 lifetime XP. Leaderboard score is period- and cohort-dependent, while XP accumulates over time.
- What should I do if I cannot run the project locally?
- Be transparent. Review the diff, trace relevant code paths, inspect the tests and CI results, and state clearly that you performed a static review rather than runtime testing.
More guides
- GitHub activity trackers: what they track and which to use
- Is there a GitHub leaderboard? How to see where you rank
- How to add GitHub stats to your profile README
- GitHub streaks: how they work and how to keep one going
- How GitHub counts contributions and handles time zones
- How to compare two GitHub profiles side by side
- How the DevTrack score, tiers and levels work
- Writing a pull request maintainers want to merge
- How to pick your first open-source issue