In my gitlab project there are 3 main branches: develop, stage and master.
Each time when updated code is pushed to develop branch, I have to merge it to stage branch and then merge it again to master branch manually.
This doesn't seem efficient.
Is there any way to merge branches automatically when there is no conflict?
Furthermore, it is possible to use a file named "gitlab-ci.yml " for auto merge something like
# merge develop branch to stage branch
merge-to-stage:
only:
- develop
script:
- merge (develop) to (stage) << something like this
# merge stage branch to master branch when the job above is completed
stage-to-master:
only:
- stage
script:
- merge (stage) to (master) << something like this
Please give me your kind advice.