Add an endpoint to get a list of pull requests for a repo
This commit is contained in:
		
							parent
							
								
									317b020932
								
							
						
					
					
						commit
						64722a15e3
					
				|  | @ -21,6 +21,12 @@ module Bitbucket | |||
|       end | ||||
|     end | ||||
| 
 | ||||
|     def pull_requests(repo) | ||||
|       relative_path = "/repositories/#{repo}/pullrequests" | ||||
|       paginator = Paginator.new(connection, relative_path, :pull_request) | ||||
| 
 | ||||
|       Collection.new(paginator) | ||||
|     end | ||||
| 
 | ||||
|     def repo(name) | ||||
|       parsed_response = connection.get("/repositories/#{name}") | ||||
|  |  | |||
|  | @ -0,0 +1,6 @@ | |||
| module Bitbucket | ||||
|   module Representation | ||||
|     class PullRequest < Representation::Base | ||||
|     end | ||||
|   end | ||||
| end | ||||
		Loading…
	
		Reference in New Issue