Project is getting bigger and we have several integration branches:
master
-> released codedevelop
-> code to be released very very soondevelop-8_6
-> code to be released in at some point as 8.6 versiondevelop-8_7
-> code to be released in at some point as 8.7 versiondevelop-8_8
-> code to be released in at some point as 8.8 versiondevelop-8_9
-> code to be released in at some point as 8.9 versiondevelop-8_10
-> code to be released in at some point as 8.10 version- and so on...
As integration branches, each branch must contain all changes from previous branches. Also, each branch receives pull request from developers (ex dev/8_7featureX
). Each feature branch must be reviewed and merging it is usually just a button in gitlab/github. No problem here. My pain-point is when merging one integration branch into the other develop
-> develop-8_6
-> develop-8_7
-> ...
So far I have been merging all branches manually, sometimes it is easy, sometimes it takes time due to conflicts, etc. But this is endless, I think having several integration branches is common approach for big projects like Gitlab, etc.
Question:
How can integration branches merge process be automatically done for all future release branches? I read about implementing git receive hooks on the server but it was unclear how to deal with conflicts. Could someone point me in the right direction? Or show some specific examples or approaches to merge all develop branches?
In other words, how people in Gitlab project deal with so many integration branches? How did they automatize it? (Or this is manually done?)