forgeplus/app/views/pull_requests/_commit.json.jbuilder

13 lines
587 B
Plaintext
Raw Normal View History

json.author do
2021-11-01 16:48:57 +08:00
json.partial! 'repositories/commit_author', locals: { user: render_cache_commit_author(commit['Author']), name: commit['Author']['Name'] }
end
json.committer do
2021-11-01 16:48:57 +08:00
json.partial! 'repositories/commit_author', locals: { user: render_cache_commit_author(commit['Committer']), name: commit['Committer']['Name'] }
end
json.timestamp render_unix_time(commit['Committer']['When'])
json.time_from_now time_from_now(commit['Committer']['When'])
2020-11-04 11:21:51 +08:00
json.created_at render_format_time_with_date(commit['Committer']['When'])
json.message commit['CommitMessage']
json.sha commit['Sha']