OSDN Git Service

Expose MergeRequest object as a notable in the API to allow for easy retrieval of...
authorMicah Huff <micah@micahhuff.com>
Wed, 30 Jan 2013 05:15:13 +0000 (21:15 -0800)
committerMicah Huff <micah@micahhuff.com>
Wed, 30 Jan 2013 05:15:13 +0000 (21:15 -0800)
lib/api/notes.rb

index 4613db5..70344d6 100644 (file)
@@ -3,7 +3,7 @@ module Gitlab
   class Notes < Grape::API
     before { authenticate! }
 
-    NOTEABLE_TYPES = [Issue, Snippet]
+    NOTEABLE_TYPES = [Issue, MergeRequest, Snippet]
 
     resource :projects do
       # Get a list of project wall notes