BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
64722a15
Commit
64722a15
authored
Aug 22, 2016
by
Douglas Barbosa Alexandre
Committed by
Stan Hu
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an endpoint to get a list of pull requests for a repo
parent
317b0209
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
client.rb
lib/bitbucket/client.rb
+6
-0
pull_request.rb
lib/bitbucket/representation/pull_request.rb
+6
-0
No files found.
lib/bitbucket/client.rb
View file @
64722a15
...
...
@@ -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
}
"
)
...
...
lib/bitbucket/representation/pull_request.rb
0 → 100644
View file @
64722a15
module
Bitbucket
module
Representation
class
PullRequest
<
Representation
::
Base
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment