People with write access to a repository can edit comments on issues, pull requests, and commits.

It's appropriate to edit a comment and remove content that doesn't contribute to the conversation and violates your community's code of conduct.

When you edit a comment, note the location that the content was removed from and optionally, the reason for removing it.

  1. Navigate to the comment you'd like to edit.
  2. The pencil iconIn the upper-right corner of the comment, click .
  3. Comment window with redacted contentIn the comment window, delete the content you'd like to remove, then type [REDACTED] to replace it.
  4. Comment window with added note that content was redactedAt the bottom of the comment, type a note indicating that you have edited the comment, and optionally, why you edited the comment.
  5. Click Update comment.

Further reading