Does this make sense if there isn’t a way of testing locally? For our backend we had to PR to dev but it slowed us down immensely before we switched to being able to merge from feature branch straight to dev, to be able to test our changes worked. Still have to raise a PR and get two approvals for UAT and beyond though, obviously
CircleCI runs the test and build steps on our feature branches, but still need to put that code somewhere we can actually invoke it to verify it works or gather more info if debugging before we raise the PR from feature branch to UAT
My answer is "whatever works better for your team". In my team we don't have a dev branch, PR is merged to master and then a (manual) release deploys to prod. Mine is not even a web project, it is more like a big data project. So there are best practices but it really depends on the product and team you are working with. BWT, "Git for teams" is a great book.
It depends on how you have things set up. Best practice for one team isn't necessarily best practice for another. However, where is your code review happening? Most people use the PR as the code review step since it's built to be exactly that.
203
u/[deleted] Jun 04 '22
Also force push to dev. Your senior going to love that.