Skip to content
Snippets Groups Projects
Commit ac2e3822 authored by Marc Shaw's avatar Marc Shaw
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,6 +16,7 @@ class MergeRequestDiffEntity < Grape::Entity
end
 
expose :created_at
expose :state
expose :commits_count
 
expose :latest?, as: :latest
Loading
Loading
Loading
Loading
@@ -29,7 +29,7 @@ def initialize_entity(merge_request, merge_request_diff)
expect(subject).to include(
:version_index, :created_at, :commits_count,
:latest, :short_commit_sha, :version_path,
:compare_path
:compare_path, :state
)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment