Skip to content
Snippets Groups Projects
Commit c4deb2a5 authored by Nikola Milojevic's avatar Nikola Milojevic
Browse files

Merge branch 'add_state_to_merge_request_diff_entity' into 'master'

Add state of merge request diff to the entity

See merge request gitlab-org/gitlab!64195
parents 0367ed10 ac2e3822
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