How to merge all same-named branches into another in multiple projects in Gitlab using CI?

Viewed 26

I have multiple repositories stored in Gitlab. Each repository has one develop branch. At the time of implementing one feature/bugfix, I might push changes to multiple repositories. For that, I will create one feature_foo branch in all repositories where I have to commit changes.

Example

I have multiple repositories on my Gitlab:

A, B, C, D, E and F

All of them include develop branch. Repositories B, D and E have an additional feature_foo branch. Note that this branch has no static name, so for every other feature/bugfix the name of the branch may change.

What do I want to achieve?

Is it possible to automate the merging of all the branches with the name feature_foo in multiple repositories (B and D) into develop branch after merging that feature branch manually in project E? Even better, is it possible to write/choose the feature_foo branch (as some parameter) and just merge all of them into develop in all projects?

I searched for Gitlab multi-project pipeline solutions in order to solve the problem but couldn't find any proper example for it. This is just one step of one automatization script that I want to implement so in order to automate other things I have to first automate the merging of some branches.

0 Answers
Related