Skip to content
Snippets Groups Projects
Commit 7ce73222 authored by Islam Amer's avatar Islam Amer Committed by Wes Gurney
Browse files

Expose votes in merge request api

parent f0a1e4eb
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -20,6 +20,8 @@ Parameters:
"project_id":3,
"title":"test1",
"state":"opened",
"upvotes":0,
"downvotes":0,
"author":{
"id":1,
"username": "admin",
Loading
Loading
@@ -62,6 +64,8 @@ Parameters:
"project_id":3,
"title":"test1",
"state":"merged",
"upvotes":0,
"downvotes":0,
"author":{
"id":1,
"username": "admin",
Loading
Loading
@@ -106,6 +110,8 @@ Parameters:
"project_id":3,
"title":"test1",
"state":"opened",
"upvotes":0,
"downvotes":0,
"author":{
"id":1,
"username": "admin",
Loading
Loading
@@ -152,6 +158,8 @@ Parameters:
"project_id":3,
"title":"test1",
"state":"opened",
"upvotes":0,
"downvotes":0,
"author":{
"id":1,
"username": "admin",
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment