Sometimes, in my team, a developer will forget to pull from master before merging. We don’t really do code reviews at this point, which brings up my question:
Is there a way to enforce that before merging Branch A into Branch B, Branch A has to contain the last commit of Branch B?
EDITS
I’m looking for an automated code review process where the only requirement would be to contain the last commit of the target branch.
I had a look at branch protection. But it unfortunately doesn’t seem to help with my specific case.