Skip to content
About

A Speed Bump for My Own Good

Added a small guard that blocks accidental direct saves to the main branch on the blog project.

1 min readEvergreen
On this page

I locked myself out of being reckless.

What happened

I added a tiny guard to the project that stops anyone (including me) from accidentally saving changes directly to the main branch. The right way to make changes is through a branch and a review step — this just enforces that.

If you try to push directly to main, you get a clear error message. If you really need to bypass it for some emergency, there's an escape hatch.

Ten lines of code. Now the process is protected.


PR: https://github.com/StevieIsmagic/vercel_blog/pull/9

Enjoyed this? Join the newsletter.

New essays and notes straight to your inbox.

Newsletter coming soon — stay tuned.