Show GN: for-real - A Chrome Extension I Built After Deleting an Entire GitHub Organization to Prevent Accidental Deletion
Key point
After accidentally deleting a GitHub organization, I built an extension that prevents copy-paste deletions.
Details
While running an end-to-end test of a Discord webhook bot, I deleted an entire GitHub organization (9 members).
I thought I was on the test repo's Settings and scrolled down to the Danger Zone and clicked Delete this repository, but I was actually on the organization Settings page. Right after the deletion, instead of a repo 404, I got an organization 404, and that's when I realized what happened.
The final blow was that I didn't properly read the confirmation string. Believing the target was the test repo, I copy-pasted it as-is, but the input field actually contained the organization name, and it went through anyway. As a result, repos, issues, PRs, Discussions, and CI history all disappeared at once.
Afterward, I urgently contacted my teammates and sent an email to GitHub Support. Recovery took 7 business days, during which I couldn't even push or check issues.
Based on this experience, I built for-real.
- It intercepts clicks when you press the delete button on repos/organizations you've registered.
- You must manually type a 20-character random code, which unlocks it for 5 minutes.
- Copy-paste is blocked, so only someone who truly intends to delete can do so.
I acknowledge that GitHub already warns with the Danger Zone, but in reality, a single mistake can cost you dozens of resources. This extension is an additional safeguard against that kind of accident.
It's currently under Web Store review, so only unpacked installation is available for now; the installation guide and source are in the repository.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.