Here's the scenario:
Dev A branches from develop and creates branch "feature/abc-123". Dev A then pushes a commit to their feature branch and creates a Pull Request to merge "feature/abc-123" back into the develop branch.
While that first PR is in review, Dev B branches from develop and creates branch "bugfix/abc-456". Dev B fixes the issue quickly, pushes a commit, creates a PR.
The team reviews the PR for the bugfix first, since it is higher priority. The PR for "bugfix/abc-456" gets approved and merged into the develop branch.
The first PR from Dev A is now stale. That is, the branch "feature/abc-123" no longer has all of the latest updates from the develop branch. The workflow process for my team would *require* Dev A to merge develop into feature/abc-123 before the PR can be approved. Is there a Bitbucket workflow or merge check that will notify the user in the PR that the source branch is NOT up-to-date?
If not, this becomes a manual process of checking that the source branch is up to date before clicking Merge on any PR.
And yes, we have a Premium account, so we are able to configure merge checks to be required before the Merge button can be used.
Here's an attempt at illustrating the desired process:
develop ==> feature/abc-123 (branched)
develop ==> bugfix/abc-456 (branched)
feature/abc-123 ==> develop (PR merged)
bugfix/abc-456 XXXX> develop (merge attempt is blocked)
develop ==> bugfix/abc456 (merged)
bugfix/abc-456 ==> develop (PR merged)
Thanks in advance!