diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-11 12:33:17 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-11 12:33:17 +0300 |
commit | d4b17700082357536aff47827d5bbf903ef02ac6 (patch) | |
tree | 1fa4a387deb371bbb14b93c1f40f9f64bcfeaee3 | |
parent | 04d1128b8a32022d4eb68694c007245936620b39 (diff) | |
parent | 5b52d7b9792feea72e6571d0fc4c283e126b5648 (diff) | |
download | gitlab-ce-d4b17700082357536aff47827d5bbf903ef02ac6.tar.gz |
Merge branch 'christian.taedcke/gitlab-ce-add_complete_commit_message_to_api'
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | doc/api/commits.md | 7 | ||||
-rw-r--r-- | lib/api/entities.rb | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG index 25868e0a4bf..88cf658ba9d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,7 @@ v 7.2.0 - Better labels: colors, ability to rename and remove - Improve the way merge request collects diffs - Improve compare page for large diffs + - Expose the full commit message via API v 7.1.0 - Remove observers diff --git a/doc/api/commits.md b/doc/api/commits.md index d55b34c0c1f..9475ecbaa67 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -21,7 +21,8 @@ Parameters: "title": "Replace sanitize with escape once", "author_name": "Dmitriy Zaporozhets", "author_email": "dzaporozhets@sphereconsultinginc.com", - "created_at": "2012-09-20T11:50:22+03:00" + "created_at": "2012-09-20T11:50:22+03:00", + "message": "Replace sanitize with escape once" }, { "id": "6104942438c14ec7bd21c6cd5bd995272b3faff6", @@ -29,7 +30,8 @@ Parameters: "title": "Sanitize for network graph", "author_name": "randx", "author_email": "dmitriy.zaporozhets@gmail.com", - "created_at": "2012-09-20T09:06:12+03:00" + "created_at": "2012-09-20T09:06:12+03:00", + "message": "Sanitize for network graph" } ] ``` @@ -55,6 +57,7 @@ Parameters: "author_name": "randx", "author_email": "dmitriy.zaporozhets@gmail.com", "created_at": "2012-09-20T09:06:12+03:00", + "message": "Sanitize for network graph", "committed_date": "2012-09-20T09:06:12+03:00", "authored_date": "2012-09-20T09:06:12+03:00", "parent_ids": [ diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 42715d2be3b..8731db59e57 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -102,6 +102,7 @@ module API class RepoCommit < Grape::Entity expose :id, :short_id, :title, :author_name, :author_email, :created_at + expose :safe_message, as: :message end class RepoCommitDetail < RepoCommit |