Sub topic 9
Addressing feedback and resolving conversations
This chapter assumes you can open a pull request, push commits to its branch, and read review comments as covered earlier. Here you will learn how to respond to a review so the reviewer can see what changed and the pull request can move toward merge.
How feedback reaches you
A reviewer leaves line comments, suggested changes, and a verdict: comment, approve, or request changes. Each line comment starts a conversation, which is a thread attached to a line of the diff. A conversation stays open until someone resolves it. If the pull request has a "Request changes" review, it stays blocked until that reviewer approves again or the review is dismissed. Branch protection can also require every conversation to be resolved before merging.
The response loop
Pushing follow-up commits
Make fixes on the same branch and push. The pull request updates on its own, so you do not open a new one.
git switch fix-login-timeout
# edit files to address the comments, then:
git add .
git commit -m "Add test for login timeout"
git pushPrefer new commits over rewriting history while a review is in progress. A force push can leave a reviewer's comments attached to code that no longer exists, and GitHub marks them as outdated. A follow-up commit lets the reviewer use the "Changes since last review" view to see only what is new. If the team wants a clean history, a squash merge combines the commits at the end.
Applying suggested changes
If a reviewer used a suggestion block, you can click Commit suggestion on that comment. To apply several at once, use Add suggestion to batch on each one, then Commit suggestions. GitHub creates a commit authored by you with the reviewer as co-author. Pull the branch locally afterward, because the remote now has a commit you do not.
Replying and resolving
Answer each comment, even briefly. Good replies say what you did ("Fixed in a1b2c3d") or why you chose not to ("The API returns null here, so the check is needed"). If a request is unclear, ask a question instead of guessing.
Who resolves a conversation is a team convention. A common rule is that the author resolves simple fixes after pushing, and the reviewer resolves anything that was debated. Click Resolve conversation only when the comment has been dealt with, since a resolved thread tells others that no action remains.
Re-requesting review
After you push, GitHub does not notify reviewers again by itself. Click the circular arrow next to the reviewer's name to re-request their review. A new approval then replaces their earlier request for changes.
Common mistakes
- Resolving a thread without replying or fixing it, which hides unfinished work.
- Pushing many unrelated changes along with the fixes, which makes the follow-up hard to review.
- Treating a disagreement as personal. State your reasoning and ask what would change the reviewer's mind.
- Forgetting to re-request review, leaving the pull request waiting.
Exercise
A reviewer requested changes, and you pushed a commit fixing every comment. The pull request still cannot be merged and the reviewer has not responded. What should you do, and why?
Show answer
Re-request review from that reviewer using the circular arrow beside their name. Pushing a commit does not notify them or clear their "Request changes" verdict. The pull request stays blocked until they approve again or the review is dismissed.