Commit ac2e3822 authored by Marc Shaw's avatar Marc Shaw

Add state of merge request diff to the entity

This will be used by the frontend to show the banner of the overflow

MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64195

Changelog: added
parent d2580206
......@@ -16,6 +16,7 @@ class MergeRequestDiffEntity < Grape::Entity
end
expose :created_at
expose :state
expose :commits_count
expose :latest?, as: :latest
......
......@@ -29,7 +29,7 @@ RSpec.describe MergeRequestDiffEntity do
expect(subject).to include(
:version_index, :created_at, :commits_count,
:latest, :short_commit_sha, :version_path,
:compare_path
:compare_path, :state
)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment