2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-17 07:22:27 -05:00
|
|
|
class AnalyticsMergeRequestEntity < AnalyticsIssueEntity
|
2019-11-19 07:06:00 -05:00
|
|
|
expose :state do |object|
|
|
|
|
MergeRequest.available_states.key(object[:state_id])
|
|
|
|
end
|
2016-11-17 07:22:27 -05:00
|
|
|
|
|
|
|
expose :url do |object|
|
2019-07-04 10:42:31 -04:00
|
|
|
url_to(:namespace_project_merge_request, object)
|
2016-11-17 07:22:27 -05:00
|
|
|
end
|
|
|
|
end
|