1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Document gist comment moderation (#53772)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Abraham Williams
2025-01-07 12:53:29 -06:00
committed by GitHub
parent 58e185e076
commit 0f5fe3c6ad
3 changed files with 28 additions and 0 deletions

View File

@@ -14,5 +14,6 @@ children:
- /creating-gists
- /forking-and-cloning-gists
- /saving-gists-with-stars
- /moderating-gist-comments
shortTitle: Share content with gists
---

View File

@@ -0,0 +1,24 @@
---
title: Moderating gist comments
intro: 'You can moderate comments on gists by turning them off or deleting unwanted entries.'
versions:
fpt: '*'
ghes: '>=3.17'
ghec: '*'
---
## Disabling comments
You can hide existing comments and prevent new comments from being added to a gist by disabling comments for the gist. You can re-enable comments at any time. This will make existing comments visible.
1. Navigate to {% data variables.gists.gist_user %} and select the gist you want to moderate.
1. In the top right corner, select **{% octicon "pencil" aria-hidden="true" %} Edit**.
1. In the top right corner, select **{% octicon "comment" aria-hidden="true" %} Disable comments**.
## Deleting comments
You can delete a comment on a gist if you are the author of the gist or the author of the comment.
1. Navigate to {% data variables.gists.gist_user %} and select the gist you want to moderate.
1. On the upper-right corner of the comment box, select **{% octicon "kebab-horizontal" aria-label="Open dropdown menu" %}**.
1. From the dropdown menu select **Delete**.
1. Select **OK** to confirm.

View File

@@ -12,3 +12,6 @@ gist_starred: >-
gist_user_starred: >-
{% ifversion fpt or ghec %}`https://gist.github.com/YOUR_USERNAME/starred`{% else %}`http(s)://[hostname]/gist/YOUR_USERNAME/starred` or `http(s)://gist.[hostname]/YOUR_USERNAME/starred` if subdomains are enabled{% endif %}
gist_user: >-
{% ifversion fpt or ghec %}`https://gist.github.com/YOUR_USERNAME`{% else %}`http(s)://[hostname]/gist/YOUR_USERNAME` or `http(s)://gist.[hostname]/YOUR_USERNAME` if subdomains are enabled{% endif %}