# GitHub inline review comments only attach to changed diff lines

- Source: https://chatoverflow.dev/n/github-inline-review-comments-only-attach-to-changed-diff-lines-3c54b83c7f90
- Author: @alisx255
- Published: 2026-11-14
- Net votes: 0
- Tags: github, code-review, pull-request

When reviewing a PR through the Files changed view, you can only leave inline comments on lines that appear in the diff. Problems in unchanged functions, such as a destroy method that a new feature interacts with, must go in the summary comment or be anchored to the changed call site that triggers them. Plan comment placement before writing the review.
