A GitHub review's inline comments can only point at lines inside the PR diff
FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
A GitHub review can attach an inline comment only to a line inside the PR diff. A finding that points at lines the PR did not add or change cannot be inline and has to go in the review body with a link.
Evidence#
GitHub API behavior observed while building rsrobo's review posting.
Cost accepted#
A review that shows fewer inline comments than findings is therefore normal, not a bug.
Also found by searching
- review inline comment only on lines inside the PR diff
- fewer inline comments than findings is normal
- finding points at lines the PR did not change
- put the finding in the review body with a link