Synchronizing multiple PR on multiple Gît repositories

464 Views Asked by At

My team is working on multiple microservices using Bitbucket Server. Each microservice resides in its own repository.

Let's assume you have a marketing feature that involves modifying 5 microservices to achieve the wanted requirement. The developer will have to run 5 PR (one for each microservice). If only 3 from these PR are okay, you don't want him to merge anything, but you want him to wait until the 5 ones are okay, and then merge everything at the same time, to avoid inconsistencies.

Bitbucket does not provide a scenario where one wants to have a "root" PR that depends on multiple children PR for each microservice. The idea behind that would be to merge everything at the same time by syncing the children PR, and once they are all accepted, merge them in one shot.

I didn't find a way to do that. How can I achieve this ?

1

There are 1 best solutions below

2
LeGEC On

One way could be : create a "root project", which contains all microservices as submodules.

A merge request on that project would consist in merging "that version for service1", "that version for service2", ...