Skip to main content
Collaborate at HartSign in

← Back to Help Center

Commenting, mentions, and closing issues from commits

Discuss issues with markdown comments, @mentions, and commit keywords.

  1. 1. Add a comment

    On /{owner}/{repo}/issues/{number}, scroll to Add a comment, write markdown in the textarea, preview if needed, and click Post comment.

  2. 2. Mention teammates

    Type @username in a comment to notify that user. They will see it under Notifications.

  3. 3. Link commits to issues

    Include #123 in a commit message to reference issue 123. The closing keyword is Fixes #123 (case-insensitive). A merge onto the default branch whose message contains that keyword closes the open issue. The issue page lists the commit.

  4. 4. Commit comments

    On a commit detail page you can also start commit comment threads and discuss specific diffs.

  5. 5. Code suggestions in pull requests

    When reviewing code in a pull request diff, propose exact replacements by wrapping code in suggestion\nreplacement code\n or using the 💡 Insert suggestion button. The author can apply it directly to the branch with a single click. See Pull requests and code review.