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|
|
2021-12-11 22:18:48 +05:30
|
|
|
MergeRequestUserEntity.represent(merge_request.assignees, options.merge(merge_request: merge_request, type: :assignees))
|
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|
|
2021-12-11 22:18:48 +05:30
|
|
|
MergeRequestUserEntity.represent(merge_request.reviewers, options.merge(merge_request: merge_request, type: :reviewers))
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
2019-07-31 22:56:46 +05:30
|
|
|
end
|