2020-03-09 13:42:32 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class MergeRequestSimple < IssuableEntity
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :title, documentation: { type: 'string', example: 'Test MR 1580978354' }
|
|
|
|
expose :web_url,
|
|
|
|
documentation: {
|
|
|
|
type: 'string', example: 'http://local.gitlab.test:8181/root/merge-train-race-condition/-/merge_requests/59'
|
|
|
|
} do |merge_request, options|
|
2020-03-09 13:42:32 +05:30
|
|
|
Gitlab::UrlBuilder.build(merge_request)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|