OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e3d84
)
Fix project_id field in MergeRequest API
author
Andrew Austin
<aaustin@terremark.com>
Tue, 27 Aug 2013 01:54:09 +0000
(
01:54
+0000)
committer
Andrew Austin
<aaustin@terremark.com>
Tue, 27 Aug 2013 01:54:09 +0000
(
01:54
+0000)
lib/api/entities.rb
patch
|
blob
|
history
diff --git
a/lib/api/entities.rb
b/lib/api/entities.rb
index
c8531e8
..
f15ca35
100644
(file)
--- 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