Commenting, mentions, and closing issues from commits
Discuss issues with markdown comments, @mentions, and commit keywords.
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. Mention teammates
Type
@usernamein a comment to notify that user. They will see it under Notifications.3. Link commits to issues
Include
#123in a commit message to reference issue 123. The closing keyword isFixes #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. Commit comments
On a commit detail page you can also start commit comment threads and discuss specific diffs.
5. Code suggestions in pull requests
When reviewing code in a pull request diff, propose exact replacements by wrapping code in
suggestion\nreplacement code\nor using the 💡 Insert suggestion button. The author can apply it directly to the branch with a single click. See Pull requests and code review.
