gitlab-org--gitlab-foss/app/views/shared
Rémy Coutable 367b68a01d Merge branch '22348-gitea-importer' into 'master'
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
2016-12-20 11:11:24 +00:00
..
builds Remove white space between nav items 2016-12-14 10:32:14 -05:00
empty_states Added empty state svg and set up blank conditional 2016-11-18 03:57:36 +00:00
groups Show full path for nested groups at dashboard groups list 2016-12-13 16:43:12 +02:00
icons Merge branch '22348-gitea-importer' into 'master' 2016-12-20 11:11:24 +00:00
issuable Merge branch 'clean-no-undef' into 'master' 2016-12-15 00:52:46 +00:00
labels Reduce duplication between the project and group label forms 2016-10-19 14:58:26 -02:00
members Move all project buttons to header 2016-12-17 13:22:19 -06:00
milestones Align milestone column header with count number 2016-12-19 14:18:08 -05:00
notifications Bring back "notification-dropdown" class for styling and use "js-notification-dropdown" for JavaScript 2016-12-18 21:07:06 +01:00
projects Update avatar container name so it doesnt conflict with other image containers 2016-11-03 12:26:09 -05:00
snippets move snippet edited timeago under the snippet title 2016-12-10 00:57:23 -06:00
tokens View-related (and other minor) changes to !5951 based on @rymai's review. 2016-12-16 16:29:32 +05:30
web_hooks Add option to confidential issues events to trigger Webhooks 2016-08-31 18:34:23 -03:00
_allow_request_access.html.haml
_choose_group_avatar_button.html.haml
_clone_panel.html.haml
_commit_message_container.html.haml add js prefix to classes used to toggle description on commit message in merge request 2016-12-16 19:13:17 +10:00
_confirm_modal.html.haml
_event_filter.html.haml remove unnecessary issues event filter on comments tab 2016-12-08 23:46:45 +03:00
_field.html.haml
_file_highlight.html.haml
_group_form.html.haml use standard gitlab namespace regex for group name validation 2016-11-25 10:38:55 -06:00
_group_tips.html.haml
_import_form.html.haml
_issues.html.haml Save a query on issue and MR lists 2016-12-01 12:24:55 +00:00
_label.html.haml Avoid code duplication for label subscription status on label partial 2016-11-17 15:10:13 -02:00
_label_row.html.haml Only show label type for projects that belong to a group 2016-10-19 14:58:28 -02:00
_labels_row.html.haml Fix LabelsHelper#link_to_label to use the subject argument 2016-10-19 14:58:24 -02:00
_logo.svg Change logo animation to CSS 2016-08-26 17:32:11 -05:00
_merge_requests.html.haml Save a query on issue and MR lists 2016-12-01 12:24:55 +00:00
_milestone_expired.html.haml Add a starting date to milestones 2016-11-23 13:41:04 +02:00
_milestones_filter.html.haml Remove white space between nav items 2016-12-14 10:32:14 -05:00
_nav_scroll.html.haml Add horizontal scrolling to all sub-navs on mobile viewports 2016-08-25 18:01:37 -05:00
_new_commit_form.html.haml
_new_project_item_select.html.haml Replace bootstrap caret with fontawesome caret 2016-10-05 17:39:52 -05:00
_no_password.html.haml
_no_ssh.html.haml
_outdated_browser.html.haml
_project_limit.html.haml
_promo.html.haml
_ref_switcher.html.haml Make the ref-selector function work properly for branch selection. 2016-08-17 09:23:43 -06:00
_service_settings.html.haml Frontend review changes 2016-11-21 22:11:21 +00:00
_show_aside.html.haml
_sort_dropdown.html.haml Homogenize dropdowns on Issue page 2016-11-28 23:18:03 +01:00
_visibility_level.html.haml Fix "Create project" button layout with restricted visibility 2016-09-26 09:04:15 -04:00
_visibility_radios.html.haml Fix "Create project" button layout with restricted visibility 2016-09-26 09:04:15 -04:00