2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-27 03:47:10 -05:00
|
|
|
class MergeRequestBasicEntity < Grape::Entity
|
2020-10-01 08:10:14 -04:00
|
|
|
expose :title
|
2020-04-15 14:09:36 -04:00
|
|
|
expose :public_merge_status, as: :merge_status
|
2017-05-09 00:15:34 -04:00
|
|
|
expose :merge_error
|
|
|
|
expose :state
|
|
|
|
expose :source_branch_exists?, as: :source_branch_exists
|
2017-12-20 04:01:21 -05:00
|
|
|
expose :rebase_in_progress?, as: :rebase_in_progress
|
2018-06-14 15:39:17 -04:00
|
|
|
expose :milestone, using: API::Entities::Milestone
|
|
|
|
expose :labels, using: LabelEntity
|
2019-04-07 14:35:16 -04:00
|
|
|
expose :assignees, using: API::Entities::UserBasic
|
2021-02-05 07:09:31 -05:00
|
|
|
expose :reviewers, using: API::Entities::UserBasic
|
2018-06-14 15:39:17 -04:00
|
|
|
expose :task_status, :task_status_short
|
2019-01-24 18:31:14 -05:00
|
|
|
expose :lock_version, :lock_version
|
2017-05-09 00:15:34 -04:00
|
|
|
end
|