Git & GitHub Interview Question #72
What is code review on GitHub?
Undo & Recovery, Tags, Forks, Pull Requests & Code Review Mid-Level Intermediate
Quick Interview Answer
Code review is the process of examining proposed changes, commonly through a pull request, before integration. Reviewers can inspect diffs, add comments, request changes, approve changes, and discuss design or implementation decisions.
Detailed Explanation
Code review is the process of examining proposed changes, commonly through a pull request, before integration. Reviewers can inspect diffs, add comments, request changes, approve changes, and discuss design or implementation decisions.
Effective review checks correctness, maintainability, security, tests, readability, and consistency while remaining focused on the change being proposed.
Code Example
# Review your own diff before requesting review
git diff main...HEAD
# Also run the project's build/tests before push.