blob: e4e9d8ef90a30ead66c371fadea3d25c4242507e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class CommitEntity < API::Entities::RepoCommit
include RequestAwareEntity
expose :author, using: UserEntity
expose :author_gravatar_url do |commit|
GravatarService.new.execute(commit.author_email)
end
expose :commit_url do |commit|
project_commit_url(request.project, commit)
end
expose :commit_path do |commit|
project_commit_path(request.project, commit)
end
end
|