gitlab-org--gitlab-foss/app/serializers/analytics_merge_request_entity.rb

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

12 lines
269 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AnalyticsMergeRequestEntity < AnalyticsIssueEntity
expose :state do |object|
MergeRequest.available_states.key(object[:state_id])
end
expose :url do |object|
url_to(:namespace_project_merge_request, object)
end
end