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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
462 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|
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