Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-04 12:16:30 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-04 12:16:30 +0300
commita2c1178c21796933916bb44b3d6b8e4d11d89d7f (patch)
treee8f184888b66c16db9a65b0c66aab704387a00d1 /app/serializers
parentf203ca5c932cc24787e1c44c5801c15923cd04ab (diff)
Expose commit author if author exists
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/commit_entity.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/commit_entity.rb b/app/serializers/commit_entity.rb
index ae53de0c750..3b6c2323e3e 100644
--- a/app/serializers/commit_entity.rb
+++ b/app/serializers/commit_entity.rb
@@ -1,6 +1,8 @@
class CommitEntity < API::Entities::RepoCommit
include RequestAwareEntity
+ expose :author, using: API::Entities::UserBasic
+
expose :commit_url do |commit|
@urls.namespace_project_tree_url(
@request.project.namespace,