Is that a normal/common practice for anyone here?
Is that a normal/common practice for anyone here?
Btw, if you want to know more about trunk-based development: https://trunkbaseddevelopment.com/
Same result, whole lot less performative bullshit.
We use branches and reviews for large changes. Small scope changes go directly to main. If it breaks, we rollback and tell that person to stop breaking things.
It depends on your project, but i prefer having a coherent view on all changes on one branch, instead of 20 branches and one outdated trunk.
However... it's also incredibly hard to self-edit and accurately `lgtm` yourself
In the end it's a matter of your project and trust. If you're doing an in house project it's great.
I find it strange how many people can't even imagine working like that, when it does work so well. It's probably a thing you have to experience to see.
At publicly traded companies or in regulated industries, yeah, your compliance will require you to disable merging without at least one approval.
TBD works on main, or “trunk” as described in the spec
See https://trunkbaseddevelopment.com/ to know more about it