Hacker News new | ask | show | jobs
by morbicer 557 days ago
In real (read enterprise) world you have things like SOC2 which mandates review by other people.

If you are 5 person startup, sure, commit straight to main.

Even in enterprise you should merge soon and live without long living feature branches but a PR where you run tests, static code analysis etc and get another eyes on is a good thing. With trunk based development the main goes straight to prod so you probably want to spin up the code for some testing anyway.