After you open a pull request in a repository, collaborators or team members can comment on the comparison of files between the two specified branches, or leave general comments on the project as a whole.

In this article:

About pull request comments

You can comment on a pull request's Conversation tab to leave general comments, questions, or props.

Pull Request conversation

You can also comment on specific sections of a file on a pull request's Files changed tab in the form of individual line comments or as part of a pull request review. Adding line comments is a great way to discuss questions about implementation or provide feedback to the author.

For more information on adding line comments to a pull request review, see "Reviewing proposed changes in a pull request."

Note: If you reply to a pull request via email, your comment will be added on the Conversation tab and will not be part of a pull request review.

To reply to an existing line comment, you'll need to navigate to the comment on either the Conversation tab or Files changed tab and add an additional line comment below it.

Tips:

  • Pull request comments support the same formatting as regular comments on GitHub, such as @mentions, emoji, and references.
  • You can add reactions to comments in pull requests in the Files changed tab.

Adding line comments to a pull request

  1. Under your repository name, click Pull requests. Issues and pull requests tab selection

  2. In the list of pull requests, click the pull request where you'd like to leave line comments.

  3. On the pull request, click Files changed. 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 field, type your comment. Comment field

  6. Optionally, to suggest a specific change to the line, click , then edit the text within the suggestion block. Suggestion block Suggested changes is currently in beta. For more information, see "Incorporating feedback in your pull request."

  7. When you're done, click Add single comment. Inline comment window

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

Resolving conversations

You can resolve a conversation in a pull request if you opened the pull request or if you have write access to the repository where the pull request was opened.

To indicate that a conversation on the Files changed tab is complete, click Resolve conversation.

Pull request conversation with Resolve conversation button

The entire conversation will be collapsed and marked as resolved, making it easier to find conversations that still need to be addressed.

Resolved conversation

Further reading