We have many people working and creating PR against develop branch.
Sometimes happen the following:
PR A is open, it add some code that call f(), pipeline build is OK
PR B is open, it add a parameter to function f(), pipeline build OK
PR B is merged in develop, develop is OK
PR A is merged in develop, develop FAIL
This could be prevented if after merging PR B, all open PR against Develop would be rebuild.
I know this is going to increment a lot the "cost" in pipeline for each merge, BUT is a little price I'm willing to pay to avoid Develop break.
Pretty sure bitbucket does not have a nice way to do it, but im open to script/api trickery