diff options
Diffstat (limited to 'lib/api/entities/merge_request_simple.rb')
-rw-r--r-- | lib/api/entities/merge_request_simple.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/entities/merge_request_simple.rb b/lib/api/entities/merge_request_simple.rb new file mode 100644 index 00000000000..f3ff4cc18a8 --- /dev/null +++ b/lib/api/entities/merge_request_simple.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module API + module Entities + class MergeRequestSimple < IssuableEntity + expose :title + expose :web_url do |merge_request, options| + Gitlab::UrlBuilder.build(merge_request) + end + end + end +end |