OSDN Git Service

Fix project_id field in MergeRequest API
authorAndrew Austin <aaustin@terremark.com>
Tue, 27 Aug 2013 01:54:09 +0000 (01:54 +0000)
committerAndrew Austin <aaustin@terremark.com>
Tue, 27 Aug 2013 01:54:09 +0000 (01:54 +0000)
lib/api/entities.rb

index c8531e8..f15ca35 100644 (file)
@@ -107,7 +107,8 @@ module API
     end
 
     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
     end