summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Koltsov <gkoltsov@gitlab.com>2019-08-02 15:34:25 +0100
committerGeorge Koltsov <gkoltsov@gitlab.com>2019-08-12 11:16:17 +0100
commit1c2554bfd38fc455be16116f6a8cf7700c8db62b (patch)
treeb4ac7bbcdd7881d51933dbe76b9d18b524f6e510 /lib
parent95075fee788495c76bad9b8b207111b26f12e216 (diff)
downloadgitlab-ce-1c2554bfd38fc455be16116f6a8cf7700c8db62b.tar.gz
Add BitBucketServerImport project filtering
Diffstat (limited to 'lib')
-rw-r--r--lib/bitbucket_server/client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bitbucket_server/client.rb b/lib/bitbucket_server/client.rb
index 6a608058813..d1661fe92ba 100644
--- a/lib/bitbucket_server/client.rb
+++ b/lib/bitbucket_server/client.rb
@@ -23,8 +23,9 @@ module BitbucketServer
BitbucketServer::Representation::Repo.new(parsed_response)
end
- def repos(page_offset: 0, limit: nil)
+ def repos(page_offset: 0, limit: nil, filter: nil)
path = "/repos"
+ path += "?q=name=#{filter}" if filter
get_collection(path, :repo, page_offset: page_offset, limit: limit)
end