Hacker News new | ask | show | jobs
by xena 941 days ago
I'm the mirrorer of that gist, how do you disable comments on a gist?
1 comments

If you're wondering why the comments are a trainwreck, it's because Elon tweeted it: https://twitter.com/elonmusk/status/1727096607752282485
Yes, that's why I want to disable comments.
I don't believe there is a way to lock it. But if you really want to clear the comments, you can use the API to recurse and delete all the comments--this is a quick Nodejs snip from Bing Chat with Octokit: https://gist.github.com/extremeheat/1042a8a933f0987b265a70d4...
That's looping, not recursion. Just FYI.
I just deleted it. I'll figure out what to do with all of the emails about all of the comments later. Probably something fun with sentiment analysis and large language models.
You can't for GitHub Gists :(.