Back to Resources

How to moderate GitHub gist comments

Mint a fixture gist, POST one comment with gh api, list it, DELETE to HTTP 204, prove GET 404, then delete the gist. Never --web.

Flowchart
6 linescompact
flowchart TD
    Gist["Gist Author Session"] --> Comments["Gist Comment Thread"]
    Comments --> Action["Click Comment '...' Menu"]
    Action --> Delete["Delete Inappropriate Comment"]
    Gist --> Settings["Gist Controls"]
    Settings --> Lock["Toggle 'Disable comments' on Gist"]
Rendered from Mermaid source with the native ZeroLabs diagram container.

Disable comments

You can hide existing comments and block new ones. Re-enabling comments makes the old ones visible again. Steps from Moderating gist comments:

  1. Go to https://gist.github.com/YOUR_USERNAME and open the gist you want to moderate.
  2. In the top right, select Edit.
  3. In the top right, select Disable comments.

Use the matching control later if you want comments back on.

Delete comments

You can delete a comment when you are the gist author or the comment author.

  1. Go to https://gist.github.com/YOUR_USERNAME and open the gist.
  2. On the upper-right of the comment, open the comment dropdown menu.
  3. Select Delete.
  4. Select OK to confirm.

Practical notes

  • Disabling comments is per gist and reversible.
  • Deleting is permanent for that comment entry.
  • You still need to be signed in as the gist owner (for disable / owner deletes) or as the commenter (for your own comments).
Share