I am proposing to add a new environment variable
BITBUCKET_PR to pipeline builds triggered by a pull request.
When set, the build was triggered by a pull request and it contains the id of the PR. When not set, the build was not triggered by a pull request.
Use case: Additional feedback can be added to a PR via a comment without the need to enforce a build status or go through a complicated third party upload.