Skip to content

Commit

Permalink
Document gist comment moderation (#53772)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot <[email protected]>
Co-authored-by: mc <[email protected]>
  • Loading branch information
3 people authored Jan 7, 2025
1 parent 58e185e commit 0f5fe3c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ children:
- /creating-gists
- /forking-and-cloning-gists
- /saving-gists-with-stars
- /moderating-gist-comments
shortTitle: Share content with gists
---
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions data/variables/gists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 0f5fe3c

Please sign in to comment.