2019-04-07 14:35:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestSidebarExtrasEntity < IssuableSidebarExtrasEntity
|
|
|
|
expose :assignees do |merge_request|
|
|
|
|
MergeRequestAssigneeEntity.represent(merge_request.assignees, merge_request: merge_request)
|
|
|
|
end
|
2020-09-07 08:08:27 -04:00
|
|
|
|
|
|
|
expose :reviewers, if: -> (m) { m.allows_reviewers? } do |merge_request|
|
|
|
|
MergeRequestReviewerEntity.represent(merge_request.reviewers, merge_request: merge_request)
|
|
|
|
end
|
2019-04-07 14:35:16 -04:00
|
|
|
end
|