debian-mirror-gitlab/lib/api/entities/merge_request_simple.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
473 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +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-13 15:44:24 +05:30
Gitlab::UrlBuilder.build(merge_request)
end
end
end
end