You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/communities/moderating-comments-and-conversations/managing-disruptive-comments.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,14 @@ Anyone with write access to a repository can edit comments on issues, pull reque
50
50
51
51
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{% ifversion fpt or ghec %} or GitHub's [Community Guidelines](/free-pro-team@latest/github/site-policy/github-community-guidelines){% endif %}.
52
52
53
-
When you edit a comment, note the location that the content was removed from and optionally, the reason for removing it.
53
+
Sometimes it may make sense to clearly indicate edits and their justification.
54
54
55
-
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.
55
+
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.
56
56
57
57

58
58
59
+
## Redacting sensitive information
60
+
59
61
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](/communities/moderating-comments-and-conversations/tracking-changes-in-a-comment)."
60
62
61
63
1. Navigate to the comment you'd like to edit.
@@ -71,20 +73,22 @@ Comment authors and anyone with write access to a repository can also delete sen
71
73
72
74
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.
73
75
76
+
If a comment contains some constructive content that adds to the conversation in the issue or pull request, you can edit the comment instead.
77
+
74
78
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{% ifversion fpt or ghec %} or GitHub's [Community Guidelines](/free-pro-team@latest/github/site-policy/github-community-guidelines){% endif %}.
75
79
76
80
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.
77
81
78
82

79
83
80
-
If a comment contains some constructive content that adds to the conversation in the issue or pull request, you can edit the comment instead.
81
-
82
84
{% note %}
83
85
84
86
**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.
85
87
86
88
{% endnote %}
87
89
90
+
### Steps to delete a comment
91
+
88
92
1. Navigate to the comment you'd like to delete.
89
93
2. In the upper-right corner of the comment, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}, then click **Delete**.
90
94

0 commit comments