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 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"]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:
- Go to
https://gist.github.com/YOUR_USERNAMEand open the gist you want to moderate. - In the top right, select Edit.
- 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.
- Go to
https://gist.github.com/YOUR_USERNAMEand open the gist. - On the upper-right of the comment, open the comment dropdown menu.
- Select Delete.
- 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).