debian-mirror-gitlab/app/serializers/merge_request_sidebar_extras_entity.rb

12 lines
426 B
Ruby
Raw Normal View History

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