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
| Action | You see | Next reviewer sees |
|---|---|---|
| Add single comment | The comment | The comment |
| Start a review, add five comments | Five comments marked pending | Nothing |
| Mark 12 of 20 files as viewed | A progress bar | Their own progress bar |
| Submit the review as Comment | Five comments | Five 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.