summaryrefslogtreecommitdiff
path: root/app/controllers/import/github_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Namespace access token session key in `Import::GithubController`Rémy Coutable2016-12-191-7/+11
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Improve Gitlab::ImportSourcesRémy Coutable2016-12-191-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename Gogs to Gitea, DRY the controller and improve viewsRémy Coutable2016-12-191-34/+57
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* modify github import JS and controller so we can now specify a namespace ↵James Lopez2016-09-201-3/+4
| | | | | | | | and/or name for a project. - Fixed and added specs. - Added different namespace options depending on user privilages - Updated docs.
* Refactoring Import::BaseController#find_or_create_namespaceDouglas Barbosa Alexandre2016-08-311-2/+6
|
* Don't create groups for unallowed users when importing projectsDouglas Barbosa Alexandre2016-08-311-6/+1
|
* Make GH one-off auth the default again for importing GH projectsRémy Coutable2016-06-301-1/+1
| | | | | | Advertise the PAT as an alternative unless GH import is not configured. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Import from Github using Personal Access Tokens.Eric K Idema2016-06-301-3/+22
| | | | | | | | | | | | | 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.
* Fix duplicate repositories in GitHub import pageStan Hu2015-10-191-4/+0
| | | | | | | | | | | | | By default, all the current user's repositories are accessible via the /users endpoint. There's no need to traverse all the organization repositories as well. See: * http://www.rubydoc.info/github/pengwynn/octokit/Octokit/Client/Repositories#repositories-instance_method * https://developer.github.com/v3/repos/#list-your-repositories Closes #2523
* Only render 404 page from /publicinified_404_errorValery Sizov2015-10-131-1/+1
|
* Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLabStan Hu2015-08-231-6/+10
| | | | | | | | | | | | | | | | | | | | | | | and request them each session. Pass these tokens to the project import data. This prevents the need to encrypt these tokens and clear them in case they expire or get revoked. For example, if you deleted and re-created OAuth2 keys for Bitbucket, you would get an Error 500 with no way to recover: ``` Started GET "/import/bitbucket/status" for x.x.x.x at 2015-08-07 05:24:10 +0000 Processing by Import::BitbucketController#status as HTML Completed 500 Internal Server Error in 607ms (ActiveRecord: 2.3ms) NameError (uninitialized constant Import::BitbucketController::Unauthorized): app/controllers/import/bitbucket_controller.rb:77:in `rescue in go_to_bitbucket_for_permissions' app/controllers/import/bitbucket_controller.rb:74:in `go_to_bitbucket_for_permissions' app/controllers/import/bitbucket_controller.rb:86:in `bitbucket_unauthorized' ``` Closes #1871
* Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-3/+3
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Import GitHub, Bitbucket or GitLab.com projects owned by authenticated user ↵Douwe Maan2015-03-311-1/+4
| | | | into current namespace.
* Fix missing GitHub organisation repositories on import page.Douwe Maan2015-03-121-1/+1
|
* Load public key in initializer.Douwe Maan2015-02-241-0/+5
|
* GitHub importer refactoringValery Sizov2015-02-051-15/+7
|
* gitlab.com importer: refactorigValery Sizov2015-02-051-17/+5
|
* Gitlab.com integration: code foldingValery Sizov2015-02-051-1/+1
|
* GitLab.com integration: refactoringValery Sizov2015-02-051-0/+80