Skip to content

Add Import API for Bitbucket Cloud

Problem to solve

Add the ability to import Bitbucket Cloud projects via API similar to GitHub projects. With our current UI import process for Bitbucket Cloud, the user is required to manually select each namespace. When a customer has 100+ projects, this can be a slow and manual process.

Create an API and call bitbucket_cloud_service.rb from that. The service should execute the import using the parallel BBC importer.

Bitbucket Server API for reference:

  • API: lib/api/import_bitbucket_server.rb
  • Service: app/services/import/bitbucket_server_service.rb

Intended users

Proposal

Similar attributes as GitHub API importer

  • PAT
  • Bitbucket Project Id
  • Repo Name
  • GitLab Group Id

Links / references

https://docs.gitlab.com/ee/api/import.html

Edited by Madelein van Niekerk