After you open a pull request in a repository, collaborators or team members can comment on the lines in its diff. Adding line comments is a great way to discuss questions about implementation, or provide feedback to the author.

Tip: Line comments support the same GitHub Flavored Markdown as regular comments on GitHub Enterprise, such as @mentions, emoji, and references.

  1. In the repository's right sidebar, click Pull Requests. Pull Requests tab
  2. In the "Pull Requests" list, click the pull request where you'd like to leave line comments.
  3. On the pull request, click the Files Changed tab. Files Changed tab
  4. Hover over the line of code where you'd like to add a comment, and click the blue comment icon. Blue comment icon
  5. In the comment window, type your comment. When you're done, click Comment on this line. Inline comment window

Anyone watching that pull request or repository will receive a notification of your comment.

Commit comments in the file gutter