2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
class MergeRequestBasicEntity < Grape::Entity
|
2020-04-22 19:07:51 +05:30
|
|
|
expose :public_merge_status, as: :merge_status
|
2017-08-17 22:00:37 +05:30
|
|
|
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
|
2019-07-31 22:56:46 +05:30
|
|
|
expose :assignees, using: API::Entities::UserBasic
|
2018-11-08 19:23:39 +05:30
|
|
|
expose :task_status, :task_status_short
|
2019-03-02 22:35:43 +05:30
|
|
|
expose :lock_version, :lock_version
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|