Skip to content

Update Legacy GitHub Import to convert use Sawyer Resource into hashes

What does this MR do and why?

This merge request is part of a series of changes to convert Octokit returned objects into a hash before using it in the codebase in order to rely less on Sawyer::Resource objects

This change converts Octokit responses in the Legacy Github Import module, which is currently used by the Gitea Import.

Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/372473

Screenshots or screen recordings

Gitea

How to set up and validate locally

  1. Create a Gitea project at https://try.gitea.io/
  2. In the project setup: labels, pull requests, issues, milestones and the repository
  3. In Gitlab, to go projects, create new project, import from Gitea
  4. Provide the Gitea URL and access token
  5. Select the project to be imported
  6. Then check if the project was successfully 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