•  


Managing disruptive comments - GitHub Docs
Skip to main content

Managing disruptive comments

You can hide, edit, or delete comments on issues, pull requests, and commits.

Hiding a comment

Organization moderators, and anyone with write access to a repository, can hide comments on issues, 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.

Screenshot of a hidden comment. The only visible content is "This comment has been minimized", with a button to show the comment.

  1. Navigate to the comment you'd like to hide.

  2. In the upper-right corner of the comment, click , then click Hide .

    Screenshot of a pull request comment by octo-user. Below an icon of three horizontal dots, a dropdown menu is expanded, and "Hide" is outlined in orange.

  3. Using the "Choose a reason" dropdown menu, choose a reason to hide the comment. Then select Hide comment .

    Screenshot of a GitHub comment showing a menu to select a reason to hide the comment: Spam, Abuse, Off Topic, Outdated, Duplicate, or Resolved.

Unhiding a comment

Organization moderators, and anyone with write access to a repository, can unhide comments on issues, pull requests, and commits.

  1. Navigate to the comment you'd like to unhide.

  2. On the right side of the comment, click Show comment .

  3. On the right side of the expanded comment, select the dropdown menu, then click Unhide .

    Screenshot of a pull request comment marked as spam. Below an icon of three horizontal dots, a dropdown menu is expanded, and "Unhide" is outlined in orange.

Editing a comment

Anyone 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 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.

Screenshot of a comment by octo-user, which has been partially redacted. In the comment header, next to the text "edited by octocat", a dropdown icon is outlined in orange.

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 ."

  1. Navigate to the comment you'd like to edit.

  2. In the upper-right corner of the comment, click , then click Edit .

    Screenshot of a pull request comment by octo-user. Below an icon of three horizontal dots, a dropdown menu is expanded, and "Edit" is outlined in orange.

  3. In the comment window, delete the content you'd like to remove, then type [REDACTED] to replace it.

  4. At 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 .

Deleting a comment

Anyone with write access to a repository can delete comments on issues, pull requests, and commits. Organization owners, team maintainers, and the comment author can also delete a comment on a team page.

If a comment contains some constructive content that adds to the conversation in the issue or pull request, you can edit the comment instead.

Deleting a comment is your last resort as a moderator. It's appropriate to delete a comment if the entire comment adds no constructive content to a conversation and violates your community's code of conduct or GitHub's Community Guidelines .

Deleting a comment creates a timeline event that is visible to anyone with read access to the repository. However, the username of the person who deleted the comment is only visible to people with write access to the repository. For anyone without write access, the timeline event is anonymized.

Screenshot of a timeline event, which says "octo-org deleted a comment from hubot 6 minutes ago."

Note: The initial comment (or body) of an issue or pull request can't be deleted. Instead, you can edit issue and pull request bodies to remove unwanted content.

Steps to delete a comment

  1. Navigate to the comment you'd like to delete.
  2. In the upper-right corner of the comment, click , then click Delete .
    Screenshot of a pull request comment by octo-user. Below an icon of three horizontal dots, a dropdown menu is expanded, and "Delete" is outlined in orange.
  3. Optionally, write a comment noting that you deleted a comment and why.

Further reading

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본