Importing CI/CD projects via GitHub Import not working properly

Summary

When a user imports a CI/CD project via GitHub Import, projects are created with the flag project.project_feature.merge_requests_access_level set to ProjectFeature::DISABLED. And because GitHub Import is triggered as a normal import when it attempts to import pull requests, they failed with the error Validation failed: Target project has disabled merge requests

And because not all records are imported, the import result is displayed as partial

Solution

  • Identify what resources should be imported when importing CI/CD projects
  • Update GitHub Import to only attempt to import the correct resources

Kibana errors

Kibana logs - internal only

Steps to import a CI/CD project

Screenshot_2023-01-20_at_22.20.18