MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Code Reviews, Inline Comments, Approvals and Changes Requested0%
Study Materials
Git & GitHub BasicsProgress 0%
1.1What is Version Control? (Local, Centralized vs Distributed VCS)1.2Why Git? History, Architecture & Core Benefits1.3The Three Trees: Working Directory, Staging Area & Git Repository1.4Installing Git and Initial Configuration (git config user.name / email)
6.1Forking Repositories and Cloning to Local Machine (git clone)6.2Creating and Managing Pull Requests (PRs) on GitHub6.3Code Reviews, Inline Comments, Approvals and Changes Requested6.4Syncing Upstream Repositories and Keeping Forks Updated
HomeTutorialsGit & GitHub BasicsCode Reviews, Inline Comments, Approvals and Changes Requested
Syncing Upstream Repositories and Keeping Forks Updated

Code Reviews, Inline Comments, Approvals and Changes Requested

Beginner12 min read•Updated: 2026-09-15•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

Code reviews are the primary defense against software bugs, architectural rot, and security vulnerabilities. On GitHub, the Pull Request interface provides a comprehensive suite of review tools designed to foster collaborative learning and high engineering standards.


1. The Anatomy of a GitHub Code Review

When a teammate asks you to review their Pull Request:

  1. 1
    Navigate to the PR on GitHub and click the Files changed tab.
  2. 2
    Review the diffs line by line. Additions are green (+), deletions are red (-).
  3. 3
    Hover your mouse over any line of code and click the blue + icon to start an inline comment.
Visual Architecture Blueprint
+-----------------------------------------------------------------------------+
| Line 42: const userToken = jwt.sign(payload, "secret_key_123");             |
+-----------------------------------------------------------------------------+
| [Review Comment]                                                            |
| Hey! Let's avoid hardcoding secrets in source files. Can we use             |
| `process.env.JWT_SECRET` instead?                                           |
|                                                                             |
| [ Add single comment ]           [ Start a review ]                         |
+-----------------------------------------------------------------------------+

Single Comment vs. Starting a Review:

  • Add single comment: Posts immediately and notifies the author right away. (Can be noisy if you leave 10 comments).
  • Start a review (Recommended): Batches all your comments into a "Pending" draft. You can refine them and publish all comments at once when your review is complete.

2. Suggesting Code Changes Directly

Reviewers can do more than point out problems—they can provide ready-to-commit solutions! Click the Add a suggestion icon (+-) inside the comment box:

1 

const userToken = jwt.sign(payload, process.env.JWT_SECRET, { expiresIn: '1h' });

1 

The author can click Commit suggestion directly in GitHub, instantly incorporating your suggested code without switching back to their terminal!


3. Submitting the Review: The 3 Verdicts

Once you have examined the files, click Review changes in the upper right. Choose one of three verdicts:

VerdictWhen to ChooseEffect on PR
CommentSubmit general feedback or ask clarifying questions without giving approvalLeaves PR open; does not count toward branch protection approval quotas
ApproveYou verified the code, tests pass, and it is ready to be mergedMarks the PR as approved green checkmark
Request changesCritical bugs, security issues, or architectural flaws must be addressedBlocks the PR from being merged until the author pushes fixes and requests re-review

4. How the Author Addresses Review Feedback

If a reviewer requests changes:

  1. 1
    Do not open a new PR!
  2. 2
    Simply make the requested edits locally on your machine on that same feature branch.
  3. 3
    Commit the fixes and push:
1 git add src/auth.js
2 git commit -m "fix(auth): read JWT secret from environment variable"
3 git push origin feat-auth
  1. 1
    GitHub automatically appends the new commits to the existing Pull Request and updates the diff!
  2. 2
    In GitHub, click the Re-request review circular arrow icon next to the reviewer's name.

Interactive Quiz• Knowledge Check

Practice Quiz

Question 1
What is the main benefit of selecting "Start a review" instead of "Add single comment" on a GitHub PR?
Question 2
Which GitHub review verdict explicitly blocks a protected branch from being merged until resolved?
Question 3
How can a PR author incorporate a code suggestion made by a reviewer with a single click?
Question 4
When an author pushes new commits to a branch with an open PR, what happens?
Question 5
What is "LGTM" in code review slang?
Next Lesson

Syncing Upstream Repositories and Keeping Forks Updated

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Creating and Managing Pull Requests (PRs) on GitHubSyncing Upstream Repositories and Keeping Forks Updated

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

Mentor-Led Practical Training

Master Git & GitHub Basics with Hands-On Projects

Practice in live mentor-led sessions with real projects, mock tests, and verifiable certification at MSK Institute.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext