r/github • • Jun 23 '26

Question How to improve our deployment process?

/r/git/comments/1uddztn/how_to_improve_our_deployment_process/
0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/DrMaxwellEdison Jun 24 '26 edited Jun 24 '26

And this is why over-reliance on AI leads you astray. You asked Claude to solve an XY problem, and it happily gave you lots of fluffy words to fulfill the Y solution, rather than addressing the X problem at the root of their question: having 3 mainline branches is bad design.

Feature flags are mentioned in passing, but that is actually the preferred approach, along with removing the dev and qa branches entirely. OP is treating branches like environments, a pretty typical misstep for many teams. They ought to be undoing that decision, rather than putting a bandaid on it like your response suggests.

Merge features due for next release into the main branch, and require feature flags on each feature. The individual feature branches can be deployed to a dev environment to test them in isolation if needed. Otherwise, final testing can be reserved for a dedicated release branch, created at the time of feature freeze. That branch can be tested rigorously, hotfixes applied, etc. When ready to release, it should be tagged, deployed, and merged back to main.

Is that precisely what OP asked for? No. But it is a better solution overall, something that will produce better results than maintaining an inherently bad workflow.

Don't surrender your critical thinking to AI, please: it gave you the answer you asked for, but it did not give you a correct answer. Knowing the difference requires human expertise.