Review Code and Update a Pull Request
Review the change, not the person
Inspect the description, commits and changed files; compare the proposed result with its acceptance criteria. Give specific, respectful feedback that describes the problem and a possible fix. Label optional preferences separately from blocking correctness or security issues. GitHub provides comment, approve and request-changes review outcomes. Their enforcement depends on permissions and configured rules.
A concrete review conversation
Reviewer: “Blocking: every 3 has no unit; please add days so the schedule is unambiguous.” Author: “Added days in a follow-up commit; please recheck notes.txt.” In an authorized hosted PR, pushing a new commit to the existing head updates the proposal. Applying a suggested change through the service can also create a commit on that branch when permitted. Respond to feedback, rerun relevant tests, and request another review when needed. Do not resolve a conversation just to hide a real issue.
Approval is not a commit
The lab records first and revised feature tips and compares their files. Review comments and approvals are simulated text, not objects stored in Git history. A new commit may invalidate earlier approval under stale-review rules. Code owners can be requested or required under configured policy; a CODEOWNERS entry alone does not guarantee mandatory approval. A green check is evidence of a reported check result, not proof of overall correctness. Avoid executing untrusted contributions with secrets or privileged runners.
Practice example
git log --oneline main..feature/notesgit diff feature/notes~1 feature/notes -- notes.txtIn the completed fixture two feature commits are listed. The last diff replaces “Water every 3” with “Water every 3 days”. No approval is recorded by either command.
Check your understanding
Write one blocking comment and a constructive response, then identify the exact revision that needs re-review.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Review Code and Update a Pull Request — knowledge check
Reason about pull request workflows and integration history.
Which review comment is most actionable?
How can an authorized author update an existing PR?
What does a review approval represent?
A new code commit arrives after approval. What should be checked?
What may applying an authorized suggested change create?