Commit cd7c131b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4916 from marbindrakon/merge_request_api

Fix project_id field in MergeRequest API
parents 0787726a 45280499
...@@ -107,7 +107,8 @@ module API ...@@ -107,7 +107,8 @@ module API
end end
class MergeRequest < Grape::Entity class MergeRequest < Grape::Entity
expose :id, :target_branch, :source_branch, :project_id, :title, :state expose :id, :target_branch, :source_branch, :title, :state
expose :target_project_id, as: :project_id
expose :author, :assignee, using: Entities::UserBasic expose :author, :assignee, using: Entities::UserBasic
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment