Skip to content

Use Bitbucket repo description over project description when importing

What does this MR do and why?

This updates the Bitbucket Server importer to look at the repo description for the GitLab project description. It was looking at the Bitbucket project description but this would be the equivalent to a GitLab group description.

Bitbucket Server API reference: https://docs.atlassian.com/bitbucket-server/rest/7.19.2/bitbucket-rest.html#idp181

Screenshots or screen recordings

Let me know if these are needed nothing is changing in the UI.

How to set up and validate locally

I think the tests cover this change pretty well, but if you want to reproduce with a Bitbucket server instance

  1. Check out this branch in your GDK instance
  2. Run a Bitbucket server instance (I think the easiest way to do this is docker https://hub.docker.com/r/atlassian/bitbucket/)
  3. docker run -P 7990:7990 atlassian/bitbucket
  4. On the first run you'll have to obtain a trail license and install it.
  5. Create a project and repo under that project (ensure they have descriptions)
  6. Go to create a new GitLab project and choose import protect
  7. Setup your local Bitbucket server instance with the user/pass you setup.
  8. Import your project
  9. Validate the GitLab project description matches the Bitbucket repo description. (Settings > General can be used before the import is done)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #296651 (closed)

Edited by Nic O'Sullivan

Merge request reports

Loading