I noticed Bitbucket Pipelines builds for pull requests have an undocumented environment variable BITBUCKET_PR_DESTINATION_COMMIT. What is it set to? Is it always the most recent commit on the destination branch?
Is there any way to get what git would report as the merge_base or common ancestor commit?