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
29c807ce
Commit
29c807ce
authored
Sep 02, 2013
by
Islam Amer
Committed by
Jacob Vosmaer
Oct 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose votes in merge request api
Signed-off-by:
Islam Amer
<
islam.amer@jollamobile.com
>
parent
07437ac3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
merge_requests.md
doc/api/merge_requests.md
+8
-0
entities.rb
lib/api/entities.rb
+1
-1
No files found.
doc/api/merge_requests.md
View file @
29c807ce
...
...
@@ -20,6 +20,8 @@ Parameters:
"project_id"
:
3
,
"title"
:
"test1"
,
"state"
:
"opened"
,
"upvotes"
:
0
,
"downvotes"
:
0
,
"author"
:{
"id"
:
1
,
"username"
:
"admin"
,
...
...
@@ -62,6 +64,8 @@ Parameters:
"project_id"
:
3
,
"title"
:
"test1"
,
"state"
:
"merged"
,
"upvotes"
:
0
,
"downvotes"
:
0
,
"author"
:{
"id"
:
1
,
"username"
:
"admin"
,
...
...
@@ -106,6 +110,8 @@ Parameters:
"project_id"
:
3
,
"title"
:
"test1"
,
"state"
:
"opened"
,
"upvotes"
:
0
,
"downvotes"
:
0
,
"author"
:{
"id"
:
1
,
"username"
:
"admin"
,
...
...
@@ -152,6 +158,8 @@ Parameters:
"project_id"
:
3
,
"title"
:
"test1"
,
"state"
:
"opened"
,
"upvotes"
:
0
,
"downvotes"
:
0
,
"author"
:{
"id"
:
1
,
"username"
:
"admin"
,
...
...
lib/api/entities.rb
View file @
29c807ce
...
...
@@ -112,7 +112,7 @@ module API
end
class
MergeRequest
<
Grape
::
Entity
expose
:id
,
:target_branch
,
:source_branch
,
:title
,
:state
expose
:id
,
:target_branch
,
:source_branch
,
:title
,
:state
,
:upvotes
,
:downvotes
expose
:target_project_id
,
as: :project_id
expose
:author
,
:assignee
,
using:
Entities
::
UserBasic
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