Convert Octokit response in Github Integration to hash

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 returned objects in Github Integration

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

Screenshots or screen recordings

GithubIntegration

How to set up and validate locally

  1. Migrate a Github project containing a Gitlab CI configuration (.gitlab-ci.yml) to your Gitlab instance
  2. Trigger the execution of the pipeline in Gitlab. This is required to be able to test the Github Integration
  3. Go to the Settings -> Integrations -> Github
  4. Configure the Github Integration, save and test
  5. The test should display a success message

MR acceptance checklist

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

Merge request reports

Loading