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

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

18 lines
627 B
Ruby
Raw Permalink Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2019-02-15 15:39:39 +05:30
class MergeRequestBasicEntity < Grape::Entity
2021-01-03 14:25:43 +05:30
expose :title
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
2022-08-13 15:12:31 +05:30
expose :should_be_rebased?, as: :should_be_rebased
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
2021-03-11 19:13:27 +05:30
expose :reviewers, 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