Commit 314c99e3 authored by Robert Schilling's avatar Robert Schilling Committed by Rémy Coutable

API: Expose full commit title

parent c5e57aa8
---
title: 'API: Expose full commit title'
merge_request: 25189
author: Robert Schilling
type: fixed
...@@ -369,8 +369,9 @@ module API ...@@ -369,8 +369,9 @@ module API
end end
class Commit < Grape::Entity class Commit < Grape::Entity
expose :id, :short_id, :title, :created_at expose :id, :short_id, :created_at
expose :parent_ids expose :parent_ids
expose :full_title, as: :title
expose :safe_message, as: :message expose :safe_message, as: :message
expose :author_name, :author_email, :authored_date expose :author_name, :author_email, :authored_date
expose :committer_name, :committer_email, :committed_date expose :committer_name, :committer_email, :committed_date
......
...@@ -237,7 +237,7 @@ describe API::Commits do ...@@ -237,7 +237,7 @@ describe API::Commits do
end end
describe 'create' do describe 'create' do
let(:message) { 'Created file' } let(:message) { 'Created a new file with a very very looooooooooooooooooooooooooooooooooooooooooooooong commit message' }
let(:invalid_c_params) do let(:invalid_c_params) do
{ {
branch: 'master', branch: 'master',
......
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