summaryrefslogtreecommitdiff
path: root/lib/api/v3/merge_requests.rb
diff options
context:
space:
mode:
authorVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-05 19:48:05 +1100
committerVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-05 19:48:05 +1100
commitc55a9ac4ae56ed29d192ea71bca9fb31f88f5dc1 (patch)
tree9decf8385cf013bfc6bbae6b0d1c97ae71bb36f7 /lib/api/v3/merge_requests.rb
parent8921af39e74976e37e92c786bd957883110f6522 (diff)
downloadgitlab-ce-c55a9ac4ae56ed29d192ea71bca9fb31f88f5dc1.tar.gz
Remove 'Repo' prefix from API entites
Diffstat (limited to 'lib/api/v3/merge_requests.rb')
-rw-r--r--lib/api/v3/merge_requests.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/merge_requests.rb b/lib/api/v3/merge_requests.rb
index b6b7254ae29..1d6d823f32b 100644
--- a/lib/api/v3/merge_requests.rb
+++ b/lib/api/v3/merge_requests.rb
@@ -135,12 +135,12 @@ module API
end
desc 'Get the commits of a merge request' do
- success ::API::Entities::RepoCommit
+ success ::API::Entities::Commit
end
get "#{path}/commits" do
merge_request = find_merge_request_with_access(params[:merge_request_id])
- present merge_request.commits, with: ::API::Entities::RepoCommit
+ present merge_request.commits, with: ::API::Entities::Commit
end
desc 'Show the merge request changes' do