From 45280499b8d0135ad7a2d088e24bae1eddd7eb74 Mon Sep 17 00:00:00 2001 From: Andrew Austin Date: Tue, 27 Aug 2013 01:54:09 +0000 Subject: [PATCH] Fix project_id field in MergeRequest API --- lib/api/entities.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/entities.rb b/lib/api/entities.rb index c8531e8..f15ca35 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -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 -- libgit2 0.21.2