Commit cd7c131b23e89883a435923560e6af3a1b2b0c9e

Authored by Dmitriy Zaporozhets
2 parents 0787726a 45280499

Merge pull request #4916 from marbindrakon/merge_request_api

Fix project_id field in MergeRequest API
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/api/entities.rb
... ... @@ -107,7 +107,8 @@ module API
107 107 end
108 108  
109 109 class MergeRequest < Grape::Entity
110   - expose :id, :target_branch, :source_branch, :project_id, :title, :state
  110 + expose :id, :target_branch, :source_branch, :title, :state
  111 + expose :target_project_id, as: :project_id
111 112 expose :author, :assignee, using: Entities::UserBasic
112 113 end
113 114  
... ...