diff options
Diffstat (limited to 'app/serializers/merge_request_metrics_entity.rb')
-rw-r--r-- | app/serializers/merge_request_metrics_entity.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/merge_request_metrics_entity.rb b/app/serializers/merge_request_metrics_entity.rb new file mode 100644 index 00000000000..3548107ac16 --- /dev/null +++ b/app/serializers/merge_request_metrics_entity.rb @@ -0,0 +1,6 @@ +class MergeRequestMetricsEntity < Grape::Entity + expose :latest_closed_at, as: :closed_at + expose :merged_at + expose :latest_closed_by, as: :closed_by, using: UserEntity + expose :merged_by, using: UserEntity +end |