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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
96514572
Commit
96514572
authored
Oct 08, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mr_votes_api' of /home/git/repositories/gitlab/gitlabhq
parents
07437ac3
29c807ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
doc/api/merge_requests.md
doc/api/merge_requests.md
+8
-0
lib/api/entities.rb
lib/api/entities.rb
+1
-1
No files found.
doc/api/merge_requests.md
View file @
96514572
...
...
@@ -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 @
96514572
...
...
@@ -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