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

15 lines
470 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
class MergeRequestBasicEntity < IssuableSidebarEntity
2017-08-17 22:00:37 +05:30
expose :assignee_id
expose :merge_status
expose :merge_error
expose :state
expose :source_branch_exists?, as: :source_branch_exists
2018-03-17 18:26:18 +05:30
expose :rebase_in_progress?, as: :rebase_in_progress
2018-11-08 19:23:39 +05:30
expose :milestone, using: API::Entities::Milestone
expose :labels, using: LabelEntity
expose :assignee, using: API::Entities::UserBasic
expose :task_status, :task_status_short
2017-08-17 22:00:37 +05:30
end