2019-07-31 22:56:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestSidebarExtrasEntity < IssuableSidebarExtrasEntity
|
2021-03-11 19:13:27 +05:30
|
|
|
expose :assignees do |merge_request, options|
|
|
|
|
MergeRequestUserEntity.represent(merge_request.assignees, options.merge(merge_request: merge_request))
|
2019-07-31 22:56:46 +05:30
|
|
|
end
|
2020-11-24 15:15:51 +05:30
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
expose :reviewers do |merge_request, options|
|
|
|
|
MergeRequestUserEntity.represent(merge_request.reviewers, options.merge(merge_request: merge_request))
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
2019-07-31 22:56:46 +05:30
|
|
|
end
|