Skip to content

Add Bitbucket Cloud Import API

George Koltsov requested to merge georgekoltsov/bb-cloud-importer-api into master

What does this MR do and why?

This MR adds Bitbucket Cloud Import API using username and app password. It updates existing importer that is tied to importing using OAuth token generation flow and adds support for basic auth to interact with Bitbucket Cloud API.

Mentions #215036 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. Create bitbucket app password using https://bitbucket.org/account/settings/app-passwords/
  2. Get your bitbucket username from https://bitbucket.org/account/settings/
curl -X POST http://gdk.test:3000/api/v4/import/bitbucket --header "PRIVATE-TOKEN: <token>" -d '{ "bitbucket_username":"<username>", "bitbucket_app_password":"<password>", "repo_path": "repo/path", "target_namespace":"root", "new_name":"bbtest" }' --header "content-type: application/json"
Edited by George Koltsov

Merge request reports