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 |
---|---|---|
.. | ||
_activity.svg | Loading commit data... | |
_commits.svg | Loading commit data... | |
_contributionanalytics.svg | Loading commit data... | |
_delta.svg | Loading commit data... | |
_files.svg | Loading commit data... | |
_go_logo.svg.erb | Loading commit data... | |
_group.svg.erb | Loading commit data... | |
_icon_close.svg | Loading commit data... | |
_icon_commit.svg | Loading commit data... | |
_icon_cycle_analytics_overview.svg | Loading commit data... | |
_icon_cycle_analytics_splash.svg | Loading commit data... | |
_icon_empty_groups.svg | Loading commit data... | |
_icon_fork.svg | Loading commit data... | |
_icon_lock.svg | Loading commit data... | |
_icon_no_data.svg | Loading commit data... | |
_icon_no_wrap.svg | Loading commit data... | |
_icon_play.svg | Loading commit data... | |
_icon_soft_wrap.svg | Loading commit data... | |
_icon_status_canceled.svg | Loading commit data... | |
_icon_status_created.svg | Loading commit data... | |
_icon_status_failed.svg | Loading commit data... | |
_icon_status_manual.svg | Loading commit data... | |
_icon_status_pending.svg | Loading commit data... | |
_icon_status_running.svg | Loading commit data... | |
_icon_status_skipped.svg | Loading commit data... | |
_icon_status_success.svg | Loading commit data... | |
_icon_status_warning.svg | Loading commit data... | |
_icon_terminal.svg | Loading commit data... | |
_icon_timer.svg | Loading commit data... | |
_illustration_no_commits.svg | Loading commit data... | |
_issues.svg.erb | Loading commit data... | |
_members.svg | Loading commit data... | |
_milestones.svg | Loading commit data... | |
_mr.svg | Loading commit data... | |
_next_discussion.svg | Loading commit data... | |
_pipelines.svg | Loading commit data... | |
_project.svg.erb | Loading commit data... | |
_wiki.svg | Loading commit data... |