diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-07 01:02:01 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-08-07 07:07:08 -0700 |
commit | d7accda1ae42fe2036060aaf3ef4447e8f352e35 (patch) | |
tree | 0079ec7347a2a68555bc625a53bfe66da44684f9 /lib | |
parent | a1e6fc157f70f1fe5e8d7b8cc9a34d1ff108b7d8 (diff) | |
download | gitlab-ce-d7accda1ae42fe2036060aaf3ef4447e8f352e35.tar.gz |
Show incompatible projects in Bitbucket import status
See #1871
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/bitbucket_import/client.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/bitbucket_import/client.rb b/lib/gitlab/bitbucket_import/client.rb index 778b76f6890..aec44b8c87b 100644 --- a/lib/gitlab/bitbucket_import/client.rb +++ b/lib/gitlab/bitbucket_import/client.rb @@ -87,6 +87,10 @@ module Gitlab JSON.parse(get("/api/1.0/user/repositories").body).select { |repo| repo["scm"] == "git" } end + def incompatible_projects + JSON.parse(get("/api/1.0/user/repositories").body).reject { |repo| repo["scm"] == "git" } + end + private def get(url) |