1. A senior engineer reviews a pull request and notices several small problems across multiple files. She wants to propose exact line-by-line code replacements that the author can apply with a single click, but she does NOT yet want to submit her overall review verdict — she wants to queue all suggestions together and submit them as one review. Which sequence of actions correctly achieves this?
- A. For each line, click 'Add single comment' and include a suggestion block in each comment, then submit the review as 'Comment'
- B. For each line, click the suggestion icon in the diff view to insert a suggestion block, then click 'Add review comment' (not 'Add single comment') to batch them, and finally click 'Finish your review' to submit all at once✓ Correct
- C. Use the GitHub CLI to push corrected commits directly to the pull request branch, which surfaces as suggestions in the Files Changed tab
- D. Open each file in the web editor, make the changes, and commit them to the PR branch; GitHub converts these commits to inline suggestions automatically
- E. For each line, click 'Add single comment' immediately — GitHub automatically batches all single comments into one pending review until you explicitly submit
Explanation
Option B is correct: when reviewing a PR, clicking 'Add review comment' (rather than 'Add single comment') adds the suggestion to a pending batch that is held until 'Finish your review' is clicked, allowing the reviewer to submit all suggestions as a single review event. Option A is wrong because 'Add single comment' publishes the comment immediately as a standalone remark, bypassing the pending-review queue. Option C is wrong because pushing commits via the CLI modifies the branch directly; it does not create suggestions. Option D is wrong for the same reason — committing changes to the branch does not generate suggestion blocks in the review interface. Option E is wrong because 'Add single comment' does NOT queue comments into a pending review; each one is posted immediately.