DEV Community

Discussion on: Why committing straight to main/master must be allowed

Collapse
 
jonlauridsen profile image
Jon Lauridsen • Edited

Hi Joe, valid points, and of course great to hear teams can weigh up the pros and cons and still find it worth having the branch protection.

Sounds like I've been in smaller teams than you (certainly not 50! 🤯😅), where main-commit accidents were rare and always short-lived so it never materialized as a tech-problem for us. I'd be a fan of trying an experiment to measure the with-and-without effect, if a team was curious to enable or disable branch protections

I would really love to read more about your performance metrics, it sounds like you've attempted to automate the DORA numbers? I've also experimented with that but didn't find a need to enforce pull-requests (TBH this feels like a topic worthy of a whole dedicated blogpost so it doesn't just disappear in the replies)