summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index ee693de699e..8c405f29568 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -63,5 +63,11 @@ module Gitlab
class SSHKey < Grape::Entity
expose :id, :title, :key
end
+
+ class MergeRequest < Grape::Entity
+ expose :id, :target_branch, :source_branch, :project_id,
+ :title, :closed, :merged
+ expose :author, :assignee, using: Entities::UserBasic
+ end
end
end