-
- Downloads
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.
Showing
- app/controllers/import/github_controller.rb 22 additions, 3 deletionsapp/controllers/import/github_controller.rb
- app/views/import/github/new.html.haml 37 additions, 0 deletionsapp/views/import/github/new.html.haml
- app/views/projects/_github_import_modal.html.haml 0 additions, 13 deletionsapp/views/projects/_github_import_modal.html.haml
- app/views/projects/new.html.haml 3 additions, 9 deletionsapp/views/projects/new.html.haml
- config/initializers/rack_attack.rb.example 2 additions, 1 deletionconfig/initializers/rack_attack.rb.example
- config/routes.rb 1 addition, 0 deletionsconfig/routes.rb
- doc/workflow/importing/import_projects_from_github.md 11 additions, 5 deletionsdoc/workflow/importing/import_projects_from_github.md
- features/dashboard/new_project.feature 1 addition, 1 deletionfeatures/dashboard/new_project.feature
- features/steps/dashboard/new_project.rb 2 additions, 8 deletionsfeatures/steps/dashboard/new_project.rb
- lib/gitlab/github_import/client.rb 31 additions, 14 deletionslib/gitlab/github_import/client.rb
- spec/controllers/import/github_controller_spec.rb 43 additions, 0 deletionsspec/controllers/import/github_controller_spec.rb
- spec/lib/gitlab/github_import/client_spec.rb 14 additions, 0 deletionsspec/lib/gitlab/github_import/client_spec.rb
Loading
Please register or sign in to comment