Hiding a comment
Organization moderators and anyone with write access to a repository, can hide comments on issues, discussions, pull requests, and commits.
If a comment is off-topic, outdated, or resolved, you may want to hide a comment to keep a discussion focused or make a pull request easier to navigate and review. Hidden comments are minimized but people with read access to the repository can expand them.

-
Navigate to the comment you'd like to hide.
-
In the upper-right corner of the comment, click , then click Hide.

-
Using the "Choose a reason" dropdown menu, choose a reason to hide the comment. Then select Hide comment.
Unhiding a comment
Organization moderators and anyone with write access to a repository, can unhide comments on issues, discussions, pull requests, and commits.
-
Navigate to the comment you'd like to unhide.
-
On the right side of the comment, click Show comment.
-
On the right side of the expanded comment, select the dropdown menu, then click Unhide.

Editing a comment
Anyone with write access to a repository can edit comments on issues, discussions, 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 or GitHub's Community Guidelines.
Sometimes it may make sense to clearly indicate edits and their justification.
That said, anyone with read access to a repository can view a comment's edit history. The edited dropdown at the top of the comment contains a history of edits showing the user and timestamp for each edit.

Redacting sensitive information
Comment authors and anyone with write access to a repository can also delete sensitive information from a comment's edit history. For more information, see Tracking changes in a comment.
-
Navigate to the comment you'd like to edit.
-
In the upper-right corner of the comment, click , then click Edit.

-
In the comment window, delete the content you'd like to remove, then type
[REDACTED]to replace it. -
At the bottom of the comment, type a note indicating that you have edited the comment, and optionally, why you edited the comment.
-
Click Update comment.