Skip to content

Skip importing features disabled in Gitea repository

Original Merge Request: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29522


What does this MR do?

Fix for issue #63127

Features like pull requests and issues can be disabled in Gitea repository.

If the Gitea importer attempts to import a repository with one of the features disabled it will get a '404 Not Found' response for the associated API endpoint and fail.

Instead of just failing to import the repository, we now assume the feature is disabled and continue on with the import.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading