Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lib/bitbucket/client.rb
lib/bitbucket/client.rb
+6
-0
lib/bitbucket/representation/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