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 @@ class DiffRefs < Grape::Entity
end
class Commit < Grape::Entity
expose :id, :short_id, :title, :created_at
expose :id, :short_id, :created_at
expose :parent_ids
expose :full_title, as: :title
expose :safe_message, as: :message
expose :author_name, :author_email, :authored_date
expose :committer_name, :committer_email, :committed_date
......
......@@ -237,7 +237,7 @@
end
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
{
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