From d7accda1ae42fe2036060aaf3ef4447e8f352e35 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 7 Aug 2015 01:02:01 -0700 Subject: Show incompatible projects in Bitbucket import status See #1871 --- lib/gitlab/bitbucket_import/client.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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) -- cgit v1.2.1