367b68a01d
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 |
||
---|---|---|
.. | ||
builds | ||
empty_states | ||
groups | ||
icons | ||
issuable | ||
labels | ||
members | ||
milestones | ||
notifications | ||
projects | ||
snippets | ||
tokens | ||
web_hooks | ||
_allow_request_access.html.haml | ||
_choose_group_avatar_button.html.haml | ||
_clone_panel.html.haml | ||
_commit_message_container.html.haml | ||
_confirm_modal.html.haml | ||
_event_filter.html.haml | ||
_field.html.haml | ||
_file_highlight.html.haml | ||
_group_form.html.haml | ||
_group_tips.html.haml | ||
_import_form.html.haml | ||
_issues.html.haml | ||
_label.html.haml | ||
_label_row.html.haml | ||
_labels_row.html.haml | ||
_logo.svg | ||
_merge_requests.html.haml | ||
_milestone_expired.html.haml | ||
_milestones_filter.html.haml | ||
_nav_scroll.html.haml | ||
_new_commit_form.html.haml | ||
_new_project_item_select.html.haml | ||
_no_password.html.haml | ||
_no_ssh.html.haml | ||
_outdated_browser.html.haml | ||
_project_limit.html.haml | ||
_promo.html.haml | ||
_ref_switcher.html.haml | ||
_service_settings.html.haml | ||
_show_aside.html.haml | ||
_sort_dropdown.html.haml | ||
_visibility_level.html.haml | ||
_visibility_radios.html.haml |