Gitlab Pipeline - auto fetch multiple repo based on branch

Im looking for a feature - When a pipeline is executed, it should auto fetch & commit the given repo’s branch on target repo’s branch.

Sometime it may required to combine multiple repo/branch to a single branch, because of its dependency files. Currently we have to do it on a virtual image(with self scripts) without proper pipeline.
I propose for this feature, so that it can be more automated for CI , which will auto-fetch its depended branch repo’s during build.