Properly handle null values returned from BitBucket Cloud API
What does this MR do and why?
In some situations, BitBucket Cloud API can return a null author. For this case we should map the original pull request author to an anonymous user.
Also, when a pull request is declined, BitBucket Cloud API the pull request does not have the target commit SHA, as the pull request was not merged
Related to: #409658 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Enable BitBucket Cloud Import in Admin -> Settings -> General -> Visibility and access controls -> Import Sources -> BitBucket
- Configure BitBucket Oauth
- Import a project from BitBucket
- New Project
- Import Project
- Choose BitBucket
- Check if the project was imported
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Rodrigo Tomonari