BigW Consortium Gitlab
It adds a brand new importer for Gitea! This is a continuation of !6945 started by @bkc. Gitea aims to be 100% GitHub-compatible but there's a few differences: - Gitea is not an OAuth provider (yet): https://github.com/go-gitea/gitea/issues/27 - This means we cannot map Gitea users given an assignee ID => assignees are not set on imported issues and merge requests - No releases API for now: https://github.com/go-gitea/gitea/issues/330 - API version is `v1` (GitHub is `v3`) - The IID field for milestones is `id` compared to `number` in GitHub. - Issues, PRs, milestones, labels don't have a `url` field (the importer now fallback to `''` in that case) **Known issues:** - Comments are not imported because comments JSON always have a blank `html_url`/`issue_url`/`pull_request_url`, so the IID cannot be extracted and the issuable cannot be found... :( This is tracked in https://github.com/go-gitea/gitea/issues/401, and solved by https://github.com/gogits/gogs/pull/3624 but this needs to be submitted / merged in Gitea. This is noted in the documentation. ## Are there points in the code the reviewer needs to double check? 1. I've made `Import::GiteaController` inherit from `Import::GithubController` since both controllers should be identical in the long-term and their current differences are small. 1. I've added a base `IssuableFormatter` class from which `IssueFormatter` & `PullRequestFormatter` inherit 1. I've added shared examples for GitHub/Gitea importer classes 1. I've made `Gitlab::ImportSources` more robust and tested!🎄 1. I've added routing specs for import routes!🎄 Closes #22348 See merge request !8116
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api | Loading commit data... | |
banzai | Loading commit data... | |
controllers | Loading commit data... | |
cycle_analytics_helpers | Loading commit data... | |
features | Loading commit data... | |
gitlab_stubs | Loading commit data... | |
import_export | Loading commit data... | |
matchers | Loading commit data... | |
services | Loading commit data... | |
api_helpers.rb | Loading commit data... | |
capybara.rb | Loading commit data... | |
capybara_helpers.rb | Loading commit data... | |
carrierwave.rb | Loading commit data... | |
chat_slash_commands_shared_examples.rb | Loading commit data... | |
cycle_analytics_helpers.rb | Loading commit data... | |
database_connection_helpers.rb | Loading commit data... | |
db_cleaner.rb | Loading commit data... | |
email_format_shared_examples.rb | Loading commit data... | |
email_helpers.rb | Loading commit data... | |
factory_girl.rb | Loading commit data... | |
fake_u2f_device.rb | Loading commit data... | |
filter_spec_helper.rb | Loading commit data... | |
fixture_helpers.rb | Loading commit data... | |
git_helpers.rb | Loading commit data... | |
git_http_helpers.rb | Loading commit data... | |
import_spec_helper.rb | Loading commit data... | |
issue_helpers.rb | Loading commit data... | |
issue_tracker_service_shared_example.rb | Loading commit data... | |
javascript_fixtures_helpers.rb | Loading commit data... | |
jira_service_helper.rb | Loading commit data... | |
kubernetes_helpers.rb | Loading commit data... | |
ldap_helpers.rb | Loading commit data... | |
login_helpers.rb | Loading commit data... | |
markdown_feature.rb | Loading commit data... | |
mentionable_shared_examples.rb | Loading commit data... | |
merge_request_helpers.rb | Loading commit data... | |
notify_shared_examples.rb | Loading commit data... | |
omni_auth.rb | Loading commit data... | |
project_features_apply_to_issuables_shared_examples.rb | Loading commit data... | |
project_hook_data_shared_example.rb | Loading commit data... | |
rake_helpers.rb | Loading commit data... | |
reactive_caching_helpers.rb | Loading commit data... | |
reference_parser_helpers.rb | Loading commit data... | |
reference_parser_shared_examples.rb | Loading commit data... | |
repo_helpers.rb | Loading commit data... | |
search_helpers.rb | Loading commit data... | |
select2_helper.rb | Loading commit data... | |
services_shared_context.rb | Loading commit data... | |
setup_builds_storage.rb | Loading commit data... | |
slack_mattermost_notifications_shared_examples.rb | Loading commit data... | |
slash_commands_helpers.rb | Loading commit data... | |
snippets_shared_examples.rb | Loading commit data... | |
stub_configuration.rb | Loading commit data... | |
stub_gitlab_calls.rb | Loading commit data... | |
stub_gitlab_data.rb | Loading commit data... | |
taskable_shared_examples.rb | Loading commit data... | |
test_env.rb | Loading commit data... | |
updating_mentions_shared_examples.rb | Loading commit data... | |
upload_helpers.rb | Loading commit data... | |
wait_for_ajax.rb | Loading commit data... | |
wait_for_vue_resource.rb | Loading commit data... | |
webmock.rb | Loading commit data... | |
workhorse_helpers.rb | Loading commit data... |