Learning center

Your colleague cannot see the review comments you have not submitted

Submit a pending review before you hand a pull request to another reviewer. On GitHub, comments in a started review are visible only to you until you submit it, so the next reviewer sees a pull request that looks unread.

What each person sees#

GitHub's documentation says: "Before you submit your review, your line comments are pending and only visible to you." Reviewing proposed changes

ActionYou seeNext reviewer sees
Add single commentThe commentThe comment
Start a review, add five commentsFive comments marked pendingNothing
Mark 12 of 20 files as viewedA progress barTheir own progress bar
Submit the review as CommentFive commentsFive comments

The third row is a personal aid too. "Viewed" tracks your own progress, and a file loses the mark if it changes after you viewed it. It does not tell anyone else what you read.

So an absence of comments has at least four explanations: nobody looked, somebody looked and found nothing, somebody has comments pending, or comments were made on an earlier version and are folded as outdated. Only the first reviewer can separate them.

Submit as Comment#

An unfinished review does not need a verdict. Choose Comment, which leaves feedback without approving or requesting changes, and put the state of the review in the summary:

Partial review, stopping here. Read at 4c1e9aa: api/, db/migrations/. Not read: web/, docs/. Open question for the author is the comment on the retry loop. I have no view yet on whether the migration can run during traffic.

Four facts make it usable: the commit, what was read, what was not, and which comments matter. Without the commit, a later push makes the list of files ambiguous.

If a comment is a half-formed suspicion, say so in its text. Deleting it to avoid embarrassment makes the next person spend the same half hour.

Check through the API#

When you take over a pull request, read what was submitted and at which commit:

gh api repos/OWNER/REPO/pulls/NUMBER/reviews \
  --jq '.[] | [.user.login, .state, .commit_id[0:7], .submitted_at] | @tsv'

Compare commit_id with the current head. A review of an older commit says nothing about what changed after it, and a range-diff shows that part. Empty output means that no review was submitted. It cannot tell you whether one is pending.

Worked example#

This example is fictional. Ana starts a review on Friday, writes seven comments and goes on leave. Ben picks the pull request up on Monday, sees no comments and starts at the first file. He reports the retry problem that Ana had already found and misses the migration question she had written down. Asked by message, Ana submits from her phone as Comment. The seven appear, tied to Friday's commit, and two are on lines that have since changed. Ben checks those two first.

Two reviewers who start together can split the review before this happens. Return to handing over evidence.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading