Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
314c99e3
Commit
314c99e3
authored
Feb 13, 2019
by
Robert Schilling
Committed by
Rémy Coutable
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: Expose full commit title
parent
c5e57aa8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
changelogs/unreleased/56237-api-truncated-commit-title.yml
changelogs/unreleased/56237-api-truncated-commit-title.yml
+5
-0
lib/api/entities.rb
lib/api/entities.rb
+2
-1
spec/requests/api/commits_spec.rb
spec/requests/api/commits_spec.rb
+1
-1
No files found.
changelogs/unreleased/56237-api-truncated-commit-title.yml
0 → 100644
View file @
314c99e3
---
title
:
'
API:
Expose
full
commit
title'
merge_request
:
25189
author
:
Robert Schilling
type
:
fixed
lib/api/entities.rb
View file @
314c99e3
...
...
@@ -369,8 +369,9 @@ module API
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
...
...
spec/requests/api/commits_spec.rb
View file @
314c99e3
...
...
@@ -237,7 +237,7 @@ describe API::Commits do
end
describe
'create'
do
let
(
:message
)
{
'Created
fil
e'
}
let
(
:message
)
{
'Created
a new file with a very very looooooooooooooooooooooooooooooooooooooooooooooong commit messag
e'
}
let
(
:invalid_c_params
)
do
{
branch:
'master'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment