Code Reviews are the key for quality control in project code and individual developer growth. We utilize Github's pull requests to handle Code Reviews and branch merging. However, anyone can request a code review for a specific commit at any time.
Since we utilize Pull Requests to both handle merging and code reviews, it's imperative that you work to craft an informative and useful pull request. When creating a pull request, try to remember to include the following:
In general, assume the person reviewing the code has no insight into the project.
Once you've crafted and opened your pull request, assign someone from the team (anyone can review anyone else's code) with a skill set that can properly look over the changed code.
Remember to ping your reviewer on Slack to make sure they're available! Please give the reviewer an hour or so to review. We're all rather busy.
Please note that sometimes pull requests are only as good as the commits made within them. Remember to keep your commits nice and small to make review much easier.
As any member of the team can (and will be expected to) review code for other team members, everyone needs to know some best practices for reviewing code.
You do NOT need a full understanding of a project to review code. All code reviews should be easily digestible by someone who is not the contributor.
Here are some things that a code review is not:
Here are some things that a code review should be:
Although turn around time will usually be pretty quick, with team members sometimes in and out of meetings, some pull requests may take longer to resolve than others. If needed, you can always assign a pull request to another team member who is available to review your code. In general, unless there is a hotfix or major issue that needs to be resolved, a little bit of wait time isn't a bad thing.