Skip to content

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

  1. Enable BitBucket Cloud Import in Admin -> Settings -> General -> Visibility and access controls -> Import Sources -> BitBucket
  2. Configure BitBucket Oauth
  3. Import a project from BitBucket
    • New Project
    • Import Project
    • Choose BitBucket
  4. 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.

Edited by Rodrigo Tomonari

Merge request reports

Loading