Import from Github using Personal Access Tokens.
This stands as an alternative to using OAuth to access a user's Github repositories. This is setup in such a way that it can be used without OAuth configuration. From a UI perspective, the how to import modal has been replaced by a full page, which includes a form for posting a personal access token back to the Import::GithubController. If the user has logged in via GitHub, skip the Personal Access Token and go directly to Github for an access token via OAuth.
显示
- app/controllers/import/github_controller.rb 22 个添加, 3 个删除app/controllers/import/github_controller.rb
- app/views/import/github/new.html.haml 37 个添加, 0 个删除app/views/import/github/new.html.haml
- app/views/projects/_github_import_modal.html.haml 0 个添加, 13 个删除app/views/projects/_github_import_modal.html.haml
- app/views/projects/new.html.haml 3 个添加, 9 个删除app/views/projects/new.html.haml
- config/initializers/rack_attack.rb.example 2 个添加, 1 个删除config/initializers/rack_attack.rb.example
- config/routes.rb 1 个添加, 0 个删除config/routes.rb
- doc/workflow/importing/import_projects_from_github.md 11 个添加, 5 个删除doc/workflow/importing/import_projects_from_github.md
- features/dashboard/new_project.feature 1 个添加, 1 个删除features/dashboard/new_project.feature
- features/steps/dashboard/new_project.rb 2 个添加, 8 个删除features/steps/dashboard/new_project.rb
- lib/gitlab/github_import/client.rb 31 个添加, 14 个删除lib/gitlab/github_import/client.rb
- spec/controllers/import/github_controller_spec.rb 43 个添加, 0 个删除spec/controllers/import/github_controller_spec.rb
- spec/lib/gitlab/github_import/client_spec.rb 14 个添加, 0 个删除spec/lib/gitlab/github_import/client_spec.rb
加载中
想要评论请 注册 或 登录