2019-03-01 05:05:04 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestForPipelineEntity < Grape::Entity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
|
|
|
expose :iid
|
|
|
|
|
|
|
|
expose :path do |merge_request|
|
|
|
|
project_merge_request_path(merge_request.project, merge_request)
|
|
|
|
end
|
|
|
|
|
|
|
|
expose :title
|
|
|
|
expose :source_branch
|
2019-03-06 03:34:38 -05:00
|
|
|
expose :source_branch_commits_path, as: :source_branch_path
|
2019-03-01 05:05:04 -05:00
|
|
|
expose :target_branch
|
2019-03-06 03:34:38 -05:00
|
|
|
expose :target_branch_commits_path, as: :target_branch_path
|
2019-03-01 05:05:04 -05:00
|
|
|
end
|