mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:最近提交列表返回距离现在时间
This commit is contained in:
@@ -9,5 +9,6 @@ json.commits @result_object[:data].each do |commit|
|
||||
json.partial! 'api/v1/users/commit_user', locals: { user: render_cache_commit_author(commit['commit']['committer']), name: commit['commit']['committer']['name'] }
|
||||
end
|
||||
json.commit_message commit['commit']['message']
|
||||
json.time_from_now time_from_now(commit['created'])
|
||||
json.parent_shas commit['parents'].map{|x|x['sha']}
|
||||
end
|
||||
Reference in New Issue
Block a user