diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-22 15:55:08 -0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-21 16:47:25 -0800 |
commit | 411d0a93723467eb355155fe52f1d159d4527556 (patch) | |
tree | 6bceb0768e228f84be4d9eb2126cbd2b8efd10c8 /lib/bitbucket | |
parent | 6418c6f88efe9015c8bc2ebd4f7db1a7277a4dc9 (diff) | |
download | gitlab-ce-411d0a93723467eb355155fe52f1d159d4527556.tar.gz |
Add an endpoint to get a single user repository
Diffstat (limited to 'lib/bitbucket')
-rw-r--r-- | lib/bitbucket/client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bitbucket/client.rb b/lib/bitbucket/client.rb index 39b52ae25a6..24984ca0793 100644 --- a/lib/bitbucket/client.rb +++ b/lib/bitbucket/client.rb @@ -5,6 +5,11 @@ module Bitbucket end + def repo(name) + parsed_response = connection.get("/repositories/#{name}") + Representation::Repo.new(parsed_response) + end + def repos relative_path = "/repositories/#{user.username}" paginator = Paginator.new(connection, relative_path, :repo) |