2019-04-07 14:35:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestSidebarExtrasEntity < IssuableSidebarExtrasEntity
|
2021-02-02 07:10:15 -05:00
|
|
|
expose :assignees do |merge_request, options|
|
2021-11-08 01:09:59 -05:00
|
|
|
MergeRequestUserEntity.represent(merge_request.assignees, options.merge(merge_request: merge_request, type: :assignees))
|
2019-04-07 14:35:16 -04:00
|
|
|
end
|
2020-09-07 08:08:27 -04:00
|
|
|
|
2021-02-05 07:09:31 -05:00
|
|
|
expose :reviewers do |merge_request, options|
|
2021-11-08 01:09:59 -05:00
|
|
|
MergeRequestUserEntity.represent(merge_request.reviewers, options.merge(merge_request: merge_request, type: :reviewers))
|
2020-09-07 08:08:27 -04:00
|
|
|
end
|
2019-04-07 14:35:16 -04:00
|
|
|
end
|